diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-04 11:39:24 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-04 11:39:24 +0000 |
commit | 33e45d8052b385aa8b1fce68122c8d11f50e7e42 (patch) | |
tree | a1a92304f5be2bb322d4d491e737972eb9dd9dfc /src/render/textures.cc | |
parent | 6155d32aa9e5fc2e5548fcc863a64d442cf5770a (diff) |
better target_engine rendering
Diffstat (limited to 'src/render/textures.cc')
-rw-r--r-- | src/render/textures.cc | 9 |
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; |