Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/spe/DrawSpan.h @ 184:907bda4a1a14
fix
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 06 Jan 2009 15:39:48 +0900 |
parents | e742053c4c87 |
children | 102dad2949a0 |
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 typedef int8_t Sint8; |
21 typedef uint8_t Uint8; | |
22 typedef int16_t Sint16; | |
23 typedef uint16_t Uint16; | |
24 typedef int32_t Sint32; | |
25 typedef uint32_t Uint32; | |
26 typedef unsigned short GLushort; | |
27 | |
28 class DrawSpan : public SchedTask { | |
29 public: | |
30 SchedConstructor(DrawSpan); | |
31 | |
184 | 32 TileHashPtr hash; |
33 TileListPtr tileList; | |
34 | |
109 | 35 int run(void *rbuf, void *wbuf); |
36 | |
177 | 37 void linebuf_init(int *buf, int width, int rgb); |
184 | 38 void set_rgb(uint32 *addr); |
39 void set_rgbs(uint32 *addr, uint32 *max_addr); | |
166 | 40 Uint32 get_rgb(int tx, int ty, uint32 *addr); |
184 | 41 TilePtr isAvailableTile(uint32 *addr); |
42 uint32* getTile(int tx, int ty, int tw, uint32 *tex_addr_top); | |
43 int getTexBlock(int tx, int ty, int twidth); | |
44 | |
45 void reboot(SpanPackPtr spack, int cur_span_x); | |
109 | 46 }; |
47 | |
48 #endif |