Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/TextureHash.h @ 1047:6a80ca9a65d9
broken texure ( h/w != 2^n ) protection
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 08 Dec 2010 05:38:45 +0900 |
parents | 735f76483bb2 |
children |
comparison
equal
deleted
inserted
replaced
1046:8c75060eb153 | 1047:6a80ca9a65d9 |
---|---|
14 | 14 |
15 TextureHash(void); | 15 TextureHash(void); |
16 ~TextureHash(void); | 16 ~TextureHash(void); |
17 int hash_function(const char* image_name); | 17 int hash_function(const char* image_name); |
18 int hash_regist(const char* image_name, int &tx_id); | 18 int hash_regist(const char* image_name, int &tx_id); |
19 void remove(int id) { table[id].tx_id = -1; } | |
19 }; | 20 }; |
20 | 21 |
21 #endif | 22 #endif |