annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_TEXTURE_HASH
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_TEXTURE_HASH
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 const int TABLE_SIZE = 8192;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 struct hashtable{
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 int tx_id;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8 char* key;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 class TextureHash {
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 public:
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 hashtable *table;
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 TextureHash(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 ~TextureHash(void);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
17 int hash_function(const char*);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
18 int hash_regist(const char*);
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
19 };
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
20
15bfacccde99 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
21 #endif