Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/textures.cc')
-rw-r--r--src/render/textures.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/render/textures.cc b/src/render/textures.cc
index 6880d87..eef5f1d 100644
--- a/src/render/textures.cc
+++ b/src/render/textures.cc
@@ -110,6 +110,15 @@ size_t Textures::load(std::string name)
return id;
}
+size_t Textures::find(std::string name)
+{
+ size_t id = 0;
+ iterator it = registry.find(name);
+ if (it != registry.end())
+ id = (*it).second;
+ return id;
+}
+
size_t Textures::bind(std::string name)
{
size_t id = 0;