Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/task/DrawSpan.h @ 167:c8b868871dce
DrawSpan で使う Tile の Hash の扱いは class TileHash を生成する事に。
author | gongo@localhost.localdomain |
---|---|
date | Tue, 09 Dec 2008 15:07:31 +0900 |
parents | e297ecaf2b4d |
children | cf2aa37d2fe7 |
line wrap: on
line source
#ifndef INCLUDED_TASK_DRAW_SPAN #define INCLUDED_TASK_DRAW_SPAN #ifndef INCLUDED_SCHED_TASK # include "SchedTask.h" #endif #ifndef INCLUDED_TAPESTRY # include "Tapestry.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 run(void *rbuf, void *wbuf); float* zRow_init(int w, int h); void linebuf_init(int *buf, int width, int rgb); char* get_pixel(int tx, int ty, uint32 *texture_image); Uint32 get_rgb(int tx, int ty, uint32 *addr); }; #endif