view Renderer/test_render/TextureHash.h @ 503:516d5c91d5b4 draft double-linked-task-list

comment
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 11 Oct 2009 19:35:33 +0900
parents 15bfacccde99
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