comparison Renderer/test_render/spe/TileHash.h @ 283:55ea4465b1a2

fix test_render
author e065746@localhost.localdomain
date Fri, 05 Jun 2009 16:49:12 +0900
parents
children
comparison
equal deleted inserted replaced
282:ef061be0baff 283:55ea4465b1a2
1 #ifndef INCLUDED_TEXTURE_HASH
2 #define INCLUDED_TEXTURE_HASH
3
4 #ifndef INCLUDED_TAPESTRY
5 # include "Tapestry.h"
6 #endif
7
8 class TileHash {
9 public:
10 TileHash(void);
11
12 private:
13 TilePtr *table;
14 int hashSize;
15 int tableSize;
16
17 public:
18 void clear(void);
19 int hash(uint32 data);
20 int put(uint32 *addr, TilePtr tile);
21 TilePtr get(uint32 *addr);
22 void remove(uint32 *addr);
23 };
24
25 typedef TileHash* TileHashPtr;
26
27 #endif
28
29 const int GLOBAL_TEXTURE_HASH = 0;
30 const int GLOBAL_TILE_LIST = 1;