diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-02 09:15:30 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-02 09:15:30 +0100 |
commit | 21a147c3c1c2fad2819fe76becab320c51eb131f (patch) | |
tree | 9114123be1d9165a199d8b27af8f9b4e00333e71 /include/yage/texture_cache.hpp | |
download | YAGE-21a147c3c1c2fad2819fe76becab320c51eb131f.tar.gz YAGE-21a147c3c1c2fad2819fe76becab320c51eb131f.zip |
Adding initial files
Diffstat (limited to 'include/yage/texture_cache.hpp')
-rw-r--r-- | include/yage/texture_cache.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/yage/texture_cache.hpp b/include/yage/texture_cache.hpp new file mode 100644 index 00000000..44dba2f8 --- /dev/null +++ b/include/yage/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 |