view works/hash_test/TextureHash.h @ 0:99a6512a8253

moving from firefly
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Wed, 28 Oct 2009 20:12:40 +0900
parents
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* image_name);
    int hash_regist(const char* image_name, int &tx_id);
};

#endif