aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/texturecache.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/YAGE/texturecache.hpp')
-rw-r--r--include/YAGE/texturecache.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/YAGE/texturecache.hpp b/include/YAGE/texturecache.hpp
new file mode 100644
index 00000000..43266ee9
--- /dev/null
+++ b/include/YAGE/texturecache.hpp
@@ -0,0 +1,24 @@
+#ifndef TEXTURE_CACHE_HPP
+#define TEXTURE_CACHE_HPP
+
+#include "gltexture.hpp"
+
+#include <unordered_map>
+
+namespace yage
+{
+
+class TextureCache
+{
+private:
+ std::unordered_map<std::string, GlTexture> texture_map_;
+public:
+ TextureCache();
+ ~TextureCache();
+
+ GlTexture getTexture(const std::string &texture_path);
+};
+
+} // yage
+
+#endif