Mercurial > hg > Game > Cerium
annotate TaskManager/Test/test_render/spe/DrawSpan.h @ 243:c4918a1fb6c9 draft
rm warning
author | e065746@localhost.localdomain |
---|---|
date | Sun, 31 May 2009 16:26:20 +0900 |
parents | e75f9eb97180 |
children | 6602b9ba4bfd |
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
508beb59e0eb
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
8 #ifndef INCLUDED_TAPESTRY |
508beb59e0eb
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
9 # include "Tapestry.h" |
508beb59e0eb
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
gongo@localhost.localdomain
parents:
166
diff
changeset
|
10 #endif |
508beb59e0eb
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); | |
210 | 36 void set_rgb(uint32 *addr, int wait_tag); |
37 void set_rgbs(uint32 *addr, uint32 *max_addr, int wait_tag); | |
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); | |
210 | 42 void writebuffer(unsigned int display, int width, int height, |
43 int screen_width); | |
44 void updateBuffer(float zpos, int rangex, int x, int y, | |
45 int tex_x, int tex_y, uint32 *tex_addr); | |
46 | |
184 | 47 |
48 void reboot(SpanPackPtr spack, int cur_span_x); | |
205 | 49 |
210 | 50 int drawDot1(SpanPtr span, int startx, int endx, int wait_tag); |
51 void drawDot2(SpanPtr span, int startx, int endx, int js, int wait_tag); | |
52 int drawLine1(SpanPtr span, int startx, int endx, int wait_tag); | |
53 void drawLine2(SpanPtr span, int startx, int endx, int js, int wait_tag); | |
109 | 54 }; |
55 | |
193 | 56 typedef struct { |
57 uint32 display; | |
58 int screen_width; | |
59 int rangex_start; | |
60 int rangex_end; | |
61 int rangey; | |
62 } DrawSpanArg, *DrawSpanArgPtr; | |
63 | |
109 | 64 #endif |