Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/Span.h @ 141:56db76a03294 draft
TileList を作ろうとしたがに動かない。
今はTileList 無しver
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Sat, 29 Nov 2008 01:18:32 +0900 |
parents | 80d93fe0601d |
children | a98dbb81db5c |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/Span.h Fri Nov 28 15:24:55 2008 +0900 +++ b/TaskManager/Test/test_render/Span.h Sat Nov 29 01:18:32 2008 +0900 @@ -5,6 +5,26 @@ # include "Tapestry.h" #endif +#define MAX_TILE_LIST 30 + +typedef struct tile { + void *tile; + int tix, tiy; + int padding; // 16バイト倍数にする用 +} TileInfo, *TileInfoPtr; + +typedef struct tile_list { + int size; + struct tile_list *next; + int pad[2]; + TileInfo tileinfo[MAX_TILE_LIST]; + + void init(void) { + size = 0; + next = 0; + } +} TileInfoList, *TileInfoListPtr; // 4*4+63*sizeof(Tile) = 1008+16 + class Span { public: long *tex_addr; @@ -20,8 +40,10 @@ float tex_y1; float tex_y2; - //int tile_list_size; - //TileList[1]; // + TileInfoListPtr tilelist; + int pad[3]; }; +typedef Span* SpanPtr; + #endif