00001 #ifndef INCLUDED_TEXTURE_HASH 00002 #define INCLUDED_TEXTURE_HASH 00003 00004 const int TABLE_SIZE = 8192; 00005 00006 struct hashtable{ 00007 int tx_id; 00008 char* key; 00009 }; 00010 00011 class TextureHash { 00012 public: 00013 hashtable *table; 00014 00015 TextureHash(void); 00016 ~TextureHash(void); 00017 int hash_function(const char*); 00018 int hash_regist(const char*); 00019 }; 00020 00021 #endif