Mercurial > hg > Game > Cerium
comparison 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 |
comparison
equal
deleted
inserted
replaced
127:c5db07490d52 | 128:95e2046eb46f |
---|---|
11 typedef uint16_t Uint16; | 11 typedef uint16_t Uint16; |
12 typedef int32_t Sint32; | 12 typedef int32_t Sint32; |
13 typedef uint32_t Uint32; | 13 typedef uint32_t Uint32; |
14 typedef unsigned short GLushort; | 14 typedef unsigned short GLushort; |
15 | 15 |
16 typedef struct { | |
17 uint32 pixel[64]; // 8*8 | |
18 void *texture_addr; | |
19 int pad[3]; | |
20 } Tile, *TilePtr; | |
21 | |
22 #define MAX_TILE 100 | |
23 | |
24 typedef struct { | |
25 int size; | |
26 int pad[3]; | |
27 Tile tile[MAX_TILE]; | |
28 | |
29 void init(void) { | |
30 size = 0; | |
31 } | |
32 } TileList, *TileListPtr; | |
33 | |
16 class DrawSpan : public SchedTask { | 34 class DrawSpan : public SchedTask { |
17 public: | 35 public: |
18 SchedConstructor(DrawSpan); | 36 SchedConstructor(DrawSpan); |
19 | 37 |
20 int run(void *rbuf, void *wbuf); | 38 int run(void *rbuf, void *wbuf); |