diff options
Diffstat (limited to 'src/render/textures.h')
-rw-r--r-- | src/render/textures.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/render/textures.h b/src/render/textures.h index aa47bfa..5a20641 100644 --- a/src/render/textures.h +++ b/src/render/textures.h @@ -30,24 +30,28 @@ public: /// Load a texture /** Returns 0 on failure, and the texture index on success */ - static size_t load(std::string name, bool filter = true); + static size_t load(const std::string & name, const bool filter = true); + + static size_t load(const char *name, const 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, bool filter = true); + static size_t bind(const std::string &name, const bool filter = true); + + static size_t bind(const char *name, const bool filter = true); /// bind a texture for OpenGL usage - static size_t bind(size_t texture, bool filter = true); + static size_t bind(const size_t texture, const bool filter = true); /// find the texture index for a given name - static size_t find(std::string name); + static size_t find(const std::string &name); /// unload a texture - static void unload(size_t id); + static void unload(const size_t id); /// unload a texture - static void unload(std::string name); + static void unload(const std::string &name); /// list loaded textures static void list(); |