Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/TextureHash.h @ 349:51ffd144f62c
fix hash_regist
author | admin@mcbk.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 10 Jul 2009 16:06:15 +0900 |
parents | fc314f28b66e |
children |
line wrap: on
line source
#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