Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/TextureHash.h @ 507:735f76483bb2
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | Renderer/test_render/TextureHash.h@55ea4465b1a2 |
children | 6a80ca9a65d9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/TextureHash.h Mon Oct 12 09:39:35 2009 +0900 @@ -0,0 +1,21 @@ +#ifndef INCLUDED_TEXTURE_HASH +#define INCLUDED_TEXTURE_HASH + +const int TABLE_SIZE = 8192; + +struct hashtable{ + int tx_id; + char* key; +}; + +class TextureHash { +public: + hashtable *table; + + TextureHash(void); + ~TextureHash(void); + int hash_function(const char* image_name); + int hash_regist(const char* image_name, int &tx_id); +}; + +#endif