view Renderer/test_render/TextureHash.h @ 312:57530cb7f7d1

memMain tester
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 08 Jun 2009 23:19:11 +0900
parents 55ea4465b1a2
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*);
    int hash_regist(const char*);
};

#endif