view TaskManager/Test/test_render/task/TileHash.h @ 373:205e4a4af635 draft

MemList not working
author kazz@kazzone.cr.ie.u-ryukyu.ac.jp
date Fri, 31 Jul 2009 17:52:27 +0900
parents 9738837c225c
children b3fb0013e6b2
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(memaddr data);
    int put(memaddr addr, TilePtr tile);
    TilePtr get(memaddr addr);
    void remove(memaddr addr);
};

typedef TileHash* TileHashPtr;

#endif