annotate Renderer/test_render/hash_texture.h @ 542:4bd51a6f6d08

merge
author tkaito@henri.cr.ie.u-ryukyu.ac.jp
date Wed, 21 Oct 2009 20:41:03 +0900
parents 55ea4465b1a2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 const int N = 8192;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3 struct
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 hashtable{
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 int tx_id;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
6 char* key;
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
7 };
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
8
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
9 class TextureHash {
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10 hashtable table[N];
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
11 public:
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
12 hash(void);
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
13 int hash_function(const char*);
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
14 int hash_regist(const char*);
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
15 };