Mercurial > hg > Game > Cerium
comparison 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 |
comparison
equal
deleted
inserted
replaced
140:67a5469dfef2 | 141:56db76a03294 |
---|---|
2 #define INCLUDED_SPAN | 2 #define INCLUDED_SPAN |
3 | 3 |
4 #ifndef INCLUDED_TAPESTRY | 4 #ifndef INCLUDED_TAPESTRY |
5 # include "Tapestry.h" | 5 # include "Tapestry.h" |
6 #endif | 6 #endif |
7 | |
8 #define MAX_TILE_LIST 30 | |
9 | |
10 typedef struct tile { | |
11 void *tile; | |
12 int tix, tiy; | |
13 int padding; // 16バイト倍数にする用 | |
14 } TileInfo, *TileInfoPtr; | |
15 | |
16 typedef struct tile_list { | |
17 int size; | |
18 struct tile_list *next; | |
19 int pad[2]; | |
20 TileInfo tileinfo[MAX_TILE_LIST]; | |
21 | |
22 void init(void) { | |
23 size = 0; | |
24 next = 0; | |
25 } | |
26 } TileInfoList, *TileInfoListPtr; // 4*4+63*sizeof(Tile) = 1008+16 | |
7 | 27 |
8 class Span { | 28 class Span { |
9 public: | 29 public: |
10 long *tex_addr; | 30 long *tex_addr; |
11 long tex_width; | 31 long tex_width; |
18 float tex_x1; | 38 float tex_x1; |
19 float tex_x2; | 39 float tex_x2; |
20 float tex_y1; | 40 float tex_y1; |
21 float tex_y2; | 41 float tex_y2; |
22 | 42 |
23 //int tile_list_size; | 43 TileInfoListPtr tilelist; |
24 //TileList[1]; // | 44 int pad[3]; |
25 }; | 45 }; |
26 | 46 |
47 typedef Span* SpanPtr; | |
48 | |
27 #endif | 49 #endif |