Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/spe/DrawSpan.h @ 128:95e2046eb46f draft
texture load use hash table
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 25 Nov 2008 15:52:28 +0900 |
parents | 028ffc9c0375 |
children | 215c22c07a4c |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/spe/DrawSpan.h Tue Nov 25 12:22:03 2008 +0900 +++ b/TaskManager/Test/test_render/spe/DrawSpan.h Tue Nov 25 15:52:28 2008 +0900 @@ -13,6 +13,24 @@ typedef uint32_t Uint32; typedef unsigned short GLushort; +typedef struct { + uint32 pixel[64]; // 8*8 + void *texture_addr; + int pad[3]; +} Tile, *TilePtr; + +#define MAX_TILE 100 + +typedef struct { + int size; + int pad[3]; + Tile tile[MAX_TILE]; + + void init(void) { + size = 0; + } +} TileList, *TileListPtr; + class DrawSpan : public SchedTask { public: SchedConstructor(DrawSpan);