From 757a712813a0815fc570784ca15676b90a36326a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 28 Jan 2009 21:02:48 +0000 Subject: cleanups --- src/render/textures.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/render/textures.h') 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(); -- cgit v1.2.3