Mercurial > hg > Game > Cerium
comparison TaskManager/Test/simple_render/spe/SpuDraw.h @ 99:57bac9e07662
rotate cube only polygon
author | gongo |
---|---|
date | Fri, 29 Feb 2008 05:20:23 +0900 |
parents | 588ab5f0e659 |
children | 62679f4cae18 |
comparison
equal
deleted
inserted
replaced
98:f320d1039d51 | 99:57bac9e07662 |
---|---|
3 | 3 |
4 #ifndef INCLUDED_SCHED_TASK | 4 #ifndef INCLUDED_SCHED_TASK |
5 # include "SchedTask.h" | 5 # include "SchedTask.h" |
6 #endif | 6 #endif |
7 | 7 |
8 //#define IMG_MAX_Y 1080 | 8 //#define IMG_MAX_X 1080 |
9 #define IMG_MAX_Y 480 | 9 #define IMG_MAX_X 512 |
10 | 10 |
11 #ifndef NULL | 11 #ifndef NULL |
12 # define NULL ((void*)0) | 12 # define NULL (0) |
13 #endif | 13 #endif |
14 | 14 |
15 typedef int8_t Sint8; | 15 typedef int8_t Sint8; |
16 typedef uint8_t Uint8; | 16 typedef uint8_t Uint8; |
17 typedef int16_t Sint16; | 17 typedef int16_t Sint16; |
18 typedef uint16_t Uint16; | 18 typedef uint16_t Uint16; |
19 typedef int32_t Sint32; | 19 typedef int32_t Sint32; |
20 typedef uint32_t Uint32; | 20 typedef uint32_t Uint32; |
21 | 21 typedef unsigned short GLushort; |
22 typedef unsigned short GLushort; | |
23 | 22 |
24 typedef struct{ | 23 typedef struct{ |
25 Uint8 r; | 24 Uint8 r; |
26 Uint8 g; | 25 Uint8 g; |
27 Uint8 b; | 26 Uint8 b; |
51 void* _rbuf, void* _wbuf, DmaManager* _con) | 50 void* _rbuf, void* _wbuf, DmaManager* _con) |
52 :SchedTask(_tlist, _task, _rbuf, _wbuf, _con) {} | 51 :SchedTask(_tlist, _task, _rbuf, _wbuf, _con) {} |
53 | 52 |
54 ~SpuDraw(void); | 53 ~SpuDraw(void); |
55 | 54 |
56 //int linebuf[8][IMG_MAX_Y]; | 55 //int linebuf[8][IMG_MAX_X]; |
57 //float zRow[8][IMG_MAX_Y]; | 56 //float zRow[8][IMG_MAX_X]; |
58 int **linebuf; | 57 int *linebuf; |
59 float **zRow; | 58 //int *linebuf; |
59 float *zRow; | |
60 int run(void *readbuf, void *writebuf); | 60 int run(void *readbuf, void *writebuf); |
61 | 61 |
62 private: | 62 private: |
63 void zRow_init(void); | 63 void zRow_init(void); |
64 void linebuf_init(void); | 64 void linebuf_init(void); |