Mercurial > hg > Members > kono > Cerium
annotate Renderer/Engine/hash_texture.h @ 639:70c5c2d2eb24
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:45:24 +0900 |
parents | 735f76483bb2 |
children |
rev | line source |
---|---|
507 | 1 #ifndef HASH_TEXTURE_H |
2 #define HASH_TEXTURE_H | |
3 | |
283 | 4 const int N = 8192; |
5 | |
6 struct | |
7 hashtable{ | |
8 int tx_id; | |
9 char* key; | |
10 }; | |
11 | |
12 class TextureHash { | |
13 hashtable table[N]; | |
14 public: | |
15 hash(void); | |
16 int hash_function(const char*); | |
17 int hash_regist(const char*); | |
18 }; | |
507 | 19 |
20 #endif |