Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/task/DrawSpan.h @ 193:102dad2949a0
fix
author | gongo@localhost.localdomain |
---|---|
date | Tue, 13 Jan 2009 19:06:13 +0900 |
parents | 907bda4a1a14 |
children | 204b03ca98f8 |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/task/DrawSpan.h Tue Jan 13 10:41:05 2009 +0900 +++ b/TaskManager/Test/test_render/task/DrawSpan.h Tue Jan 13 19:06:13 2009 +0900 @@ -17,32 +17,39 @@ # include "TileHash.h" #endif -typedef int8_t Sint8; -typedef uint8_t Uint8; -typedef int16_t Sint16; -typedef uint16_t Uint16; -typedef int32_t Sint32; -typedef uint32_t Uint32; -typedef unsigned short GLushort; - class DrawSpan : public SchedTask { public: SchedConstructor(DrawSpan); + int *linebuf; + float *zRow; TileHashPtr hash; TileListPtr tileList; + int doneWrite; + + ~DrawSpan(void); int run(void *rbuf, void *wbuf); - void linebuf_init(int *buf, int width, int rgb); + int* linebuf_init(int width, int height, int rgb); + float* zRow_init(int width, int height); void set_rgb(uint32 *addr); void set_rgbs(uint32 *addr, uint32 *max_addr); - Uint32 get_rgb(int tx, int ty, uint32 *addr); + uint32 get_rgb(int tx, int ty, uint32 *addr); TilePtr isAvailableTile(uint32 *addr); uint32* getTile(int tx, int ty, int tw, uint32 *tex_addr_top); int getTexBlock(int tx, int ty, int twidth); + void writebuffer(unsigned int display, int width, int height, int screen_width); void reboot(SpanPackPtr spack, int cur_span_x); }; +typedef struct { + uint32 display; + int screen_width; + int rangex_start; + int rangex_end; + int rangey; +} DrawSpanArg, *DrawSpanArgPtr; + #endif