diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-11 15:16:25 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-11 15:16:25 +0000 |
commit | d2e93235b9ccd37bf8c8fb7c4376ab1911c83639 (patch) | |
tree | 61bfbf023228ba10abe488d8c8bd27359171c9f7 /src/render/textures.h | |
parent | d82c8f449c604d0f957e3dd190f7beae3596e6f9 (diff) |
console font
Diffstat (limited to 'src/render/textures.h')
-rw-r--r-- | src/render/textures.h | 8 |
1 files changed, 5 insertions, 3 deletions
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<std::string, size_t>::iterator iterator; static std::map<std::string, size_t> registry; |