From d2e93235b9ccd37bf8c8fb7c4376ab1911c83639 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 11 May 2008 15:16:25 +0000 Subject: console font --- src/render/textures.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/render/textures.h') diff --git a/src/render/textures.h b/src/render/textures.h index f8e35b3..12873ef 100644 --- a/src/render/textures.h +++ b/src/render/textures.h @@ -29,15 +29,15 @@ public: /// Load a texture /** Returns 0 on failure, and the texture index on success */ - static size_t load(std::string name); + static size_t load(std::string name, bool filter = true); /// bind a texture for OpenGL usage /** Returns 0 on failure, and the texture index on success */ - static size_t bind(std::string name); + static size_t bind(std::string name, bool filter = true); /// bind a texture for OpenGL usage - static size_t bind(size_t texture); + static size_t bind(size_t texture, bool filter = true); /// find the texture index for a given name static size_t find(std::string name); @@ -45,6 +45,8 @@ public: private: static void clear(); + static void set_filter(bool filter); + typedef std::map::iterator iterator; static std::map registry; -- cgit v1.2.3