Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/task/TileHash.h @ 383:b3fb0013e6b2 draft
fix header, MemHash in kernel
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 06 Aug 2009 12:04:55 +0900 |
parents | 205e4a4af635 |
children | 839e34d0cc3c |
line wrap: on
line source
#ifndef INCLUDED_TEXTURE_HASH #define INCLUDED_TEXTURE_HASH #include "Tapestry.h" class TileHash { public: TileHash(void); private: TilePtr *table; int hashSize; int tableSize; public: void clear(void); int hash(memaddr data); int put(memaddr addr, TilePtr tile); TilePtr get(memaddr addr); void remove(memaddr addr); }; typedef TileHash* TileHashPtr; #endif