Mercurial > hg > Members > e085722 > Cerium
annotate Renderer/Engine/hash_texture.h @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
rev | line source |
---|---|
0 | 1 #ifndef HASH_TEXTURE_H |
2 #define HASH_TEXTURE_H | |
3 | |
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 }; | |
19 | |
20 #endif |