Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/TextureHash.h @ 362:a64a6c34868f
vacuum -sg 15
author | e065746@localhost.localdomain |
---|---|
date | Fri, 17 Jul 2009 23:02:07 +0900 |
parents | 51ffd144f62c |
children |
rev | line source |
---|---|
141 | 1 #ifndef INCLUDED_TEXTURE_HASH |
2 #define INCLUDED_TEXTURE_HASH | |
3 | |
4 const int TABLE_SIZE = 8192; | |
5 | |
6 struct hashtable{ | |
7 int tx_id; | |
8 char* key; | |
9 }; | |
10 | |
11 class TextureHash { | |
12 public: | |
13 hashtable *table; | |
14 | |
15 TextureHash(void); | |
16 ~TextureHash(void); | |
349 | 17 int hash_function(const char* image_name); |
18 int hash_regist(const char* image_name, int &tx_id); | |
141 | 19 }; |
20 | |
21 #endif |