diff options
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; |