Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/task/TileHash.h @ 352:3f5289873643
add global_alloc.h
author | admin@mb22-no-macbook-2.local |
---|---|
date | Mon, 13 Jul 2009 19:25:10 +0900 |
parents | 56be4a6e5513 |
children | eab18aa0c7f6 |
line wrap: on
line source
#ifndef INCLUDED_TEXTURE_HASH #define INCLUDED_TEXTURE_HASH #ifndef INCLUDED_TAPESTRY # include "Tapestry.h" #endif class TileHash { public: TileHash(void); private: TilePtr *table; int hashSize; int tableSize; public: void clear(void); int hash(uint32 data); int put(uint32 *addr, TilePtr tile); TilePtr get(uint32 *addr); void remove(uint32 *addr); }; typedef TileHash* TileHashPtr; #endif