Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-28 21:02:48 +0000
committerStijn Buys <ingar@osirion.org>2009-01-28 21:02:48 +0000
commit757a712813a0815fc570784ca15676b90a36326a (patch)
tree7366760796da3f332dea614c3276d04c76ecdfeb /src/render/textures.h
parentf681fc3c38348a0af49e09022948a6b87c801ab0 (diff)
cleanups
Diffstat (limited to 'src/render/textures.h')
-rw-r--r--src/render/textures.h16
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();