Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/spe/DrawSpan.h @ 193:102dad2949a0
fix
author | gongo@localhost.localdomain |
---|---|
date | Tue, 13 Jan 2009 19:06:13 +0900 |
parents | 907bda4a1a14 |
children | efb1df3176f4 |
rev | line source |
---|---|
109 | 1 #ifndef INCLUDED_TASK_DRAW_SPAN |
2 #define INCLUDED_TASK_DRAW_SPAN | |
3 | |
4 #ifndef INCLUDED_SCHED_TASK | |
5 # include "SchedTask.h" | |
6 #endif | |
7 | |
167
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
8 #ifndef INCLUDED_TAPESTRY |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
9 # include "Tapestry.h" |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
10 #endif |
c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
11 |
184 | 12 #ifndef INCLUDED_SPAN_PACK |
13 # include "SpanPack.h" | |
14 #endif | |
15 | |
16 #ifndef INCLUDED_TEXTURE_HASH | |
17 # include "TileHash.h" | |
18 #endif | |
19 | |
109 | 20 class DrawSpan : public SchedTask { |
21 public: | |
22 SchedConstructor(DrawSpan); | |
23 | |
193 | 24 int *linebuf; |
25 float *zRow; | |
184 | 26 TileHashPtr hash; |
27 TileListPtr tileList; | |
193 | 28 int doneWrite; |
29 | |
30 ~DrawSpan(void); | |
184 | 31 |
109 | 32 int run(void *rbuf, void *wbuf); |
33 | |
193 | 34 int* linebuf_init(int width, int height, int rgb); |
35 float* zRow_init(int width, int height); | |
184 | 36 void set_rgb(uint32 *addr); |
37 void set_rgbs(uint32 *addr, uint32 *max_addr); | |
193 | 38 uint32 get_rgb(int tx, int ty, uint32 *addr); |
184 | 39 TilePtr isAvailableTile(uint32 *addr); |
40 uint32* getTile(int tx, int ty, int tw, uint32 *tex_addr_top); | |
41 int getTexBlock(int tx, int ty, int twidth); | |
193 | 42 void writebuffer(unsigned int display, int width, int height, int screen_width); |
184 | 43 |
44 void reboot(SpanPackPtr spack, int cur_span_x); | |
109 | 45 }; |
46 | |
193 | 47 typedef struct { |
48 uint32 display; | |
49 int screen_width; | |
50 int rangex_start; | |
51 int rangex_end; | |
52 int rangey; | |
53 } DrawSpanArg, *DrawSpanArgPtr; | |
54 | |
109 | 55 #endif |