annotate TaskManager/Test/test_render/spe/DrawSpan.h @ 205:efb1df3176f4

fix
author gongo@localhost.localdomain
date Tue, 27 Jan 2009 18:21:12 +0900
parents 102dad2949a0
children 204b03ca98f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #ifndef INCLUDED_TASK_DRAW_SPAN
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #define INCLUDED_TASK_DRAW_SPAN
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 #ifndef INCLUDED_SCHED_TASK
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 # include "SchedTask.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 #endif
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
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
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
12 #ifndef INCLUDED_SPAN_PACK
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
13 # include "SpanPack.h"
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
14 #endif
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
15
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
16 #ifndef INCLUDED_TEXTURE_HASH
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
17 # include "TileHash.h"
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
18 #endif
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
19
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 class DrawSpan : public SchedTask {
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 public:
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 SchedConstructor(DrawSpan);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23
193
gongo@localhost.localdomain
parents: 184
diff changeset
24 int *linebuf;
gongo@localhost.localdomain
parents: 184
diff changeset
25 float *zRow;
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
26 TileHashPtr hash;
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
27 TileListPtr tileList;
193
gongo@localhost.localdomain
parents: 184
diff changeset
28 int doneWrite;
gongo@localhost.localdomain
parents: 184
diff changeset
29
gongo@localhost.localdomain
parents: 184
diff changeset
30 ~DrawSpan(void);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
31
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32 int run(void *rbuf, void *wbuf);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33
193
gongo@localhost.localdomain
parents: 184
diff changeset
34 int* linebuf_init(int width, int height, int rgb);
gongo@localhost.localdomain
parents: 184
diff changeset
35 float* zRow_init(int width, int height);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
36 void set_rgb(uint32 *addr);
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
37 void set_rgbs(uint32 *addr, uint32 *max_addr);
193
gongo@localhost.localdomain
parents: 184
diff changeset
38 uint32 get_rgb(int tx, int ty, uint32 *addr);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
39 TilePtr isAvailableTile(uint32 *addr);
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
40 uint32* getTile(int tx, int ty, int tw, uint32 *tex_addr_top);
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
41 int getTexBlock(int tx, int ty, int twidth);
193
gongo@localhost.localdomain
parents: 184
diff changeset
42 void writebuffer(unsigned int display, int width, int height, int screen_width);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
43
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 177
diff changeset
44 void reboot(SpanPackPtr spack, int cur_span_x);
205
gongo@localhost.localdomain
parents: 193
diff changeset
45
gongo@localhost.localdomain
parents: 193
diff changeset
46 void drawDot(SpanPtr span, int startx, int endx);
gongo@localhost.localdomain
parents: 193
diff changeset
47 void drawLine(SpanPtr span, int startx, int endx);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
48 };
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
49
193
gongo@localhost.localdomain
parents: 184
diff changeset
50 typedef struct {
gongo@localhost.localdomain
parents: 184
diff changeset
51 uint32 display;
gongo@localhost.localdomain
parents: 184
diff changeset
52 int screen_width;
gongo@localhost.localdomain
parents: 184
diff changeset
53 int rangex_start;
gongo@localhost.localdomain
parents: 184
diff changeset
54 int rangex_end;
gongo@localhost.localdomain
parents: 184
diff changeset
55 int rangey;
gongo@localhost.localdomain
parents: 184
diff changeset
56 } DrawSpanArg, *DrawSpanArgPtr;
gongo@localhost.localdomain
parents: 184
diff changeset
57
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
58 #endif