Mercurial > hg > Game > Cerium
annotate Renderer/Engine/TextureHash.h @ 844:ba9e10f636eb draft
send_linda's bug fix, and replace wait_rd() to rd() on dynamic_load
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 02 Jun 2010 17:04:26 +0900 |
parents | 3bc98f6d31ff |
children | f87218eed9fc |
rev | line source |
---|---|
283 | 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); | |
539 | 17 int hash_function(const char* image_name); |
18 int hash_regist(const char* image_name, int &tx_id); | |
283 | 19 }; |
20 | |
21 #endif |