From ca0c1d3e6f8b5fa4eb2e0a86fcf47b12fb600786 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 27 Sep 2008 17:16:15 +0000 Subject: mission targets, texture unloading, private messages --- src/render/textures.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/render/textures.h') 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::iterator iterator; static std::map registry; - static size_t index; static GLuint textures[MAXTEXTURES]; }; -- cgit v1.2.3