diff options
author | Stijn Buys <ingar@osirion.org> | 2008-09-27 17:16:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-09-27 17:16:15 +0000 |
commit | ca0c1d3e6f8b5fa4eb2e0a86fcf47b12fb600786 (patch) | |
tree | 5d72e330f11350065806e83cc8712693241b9aad /src/render/textures.h | |
parent | 29984680d6e0e52efec489497b1796e056164442 (diff) |
mission targets, texture unloading, private messages
Diffstat (limited to 'src/render/textures.h')
-rw-r--r-- | src/render/textures.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render/textures.h b/src/render/textures.h index 43e312d..aa47bfa 100644 --- a/src/render/textures.h +++ b/src/render/textures.h @@ -43,15 +43,22 @@ public: /// find the texture index for a given name static size_t find(std::string name); + /// unload a texture + static void unload(size_t id); + + /// unload a texture + static void unload(std::string name); + + /// list loaded textures + static void list(); + private: static void clear(); - static void set_filter(bool filter); typedef std::map<std::string, size_t>::iterator iterator; static std::map<std::string, size_t> registry; - static size_t index; static GLuint textures[MAXTEXTURES]; }; |