diff TaskManager/Test/test_render/TextureHash.h @ 141:fc314f28b66e

TileList を作ろうとしたがに動かない。 今はTileList 無しver
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Sat, 29 Nov 2008 01:18:32 +0900
parents
children 51ffd144f62c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TaskManager/Test/test_render/TextureHash.h	Sat Nov 29 01:18:32 2008 +0900
@@ -0,0 +1,21 @@
+#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