aboutsummaryrefslogtreecommitdiffstats
path: root/zedengine/include/texture_cache.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'zedengine/include/texture_cache.hpp')
-rw-r--r--zedengine/include/texture_cache.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/zedengine/include/texture_cache.hpp b/zedengine/include/texture_cache.hpp
new file mode 100644
index 0000000..44dba2f
--- /dev/null
+++ b/zedengine/include/texture_cache.hpp
@@ -0,0 +1,20 @@
+#ifndef TEXTURE_CACHE_HPP
+#define TEXTURE_CACHE_HPP
+
+#include "gl_texture.hpp"
+
+#include <unordered_map>
+
+class TextureCache
+{
+private:
+ std::unordered_map<std::string, GlTexture> texture_map_;
+public:
+ TextureCache();
+ ~TextureCache();
+
+ GlTexture getTexture(const std::string &texture_path);
+};
+
+
+#endif