diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-04 12:19:41 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-04 12:19:41 +0100 |
commit | 55a1e0ad7c9d2661c266b2e767bfcb2f944e859f (patch) | |
tree | fe3ac90ab853e2f87bd33294976a3fc56e144988 /include/YAGE/texturecache.hpp | |
parent | aa67c8bb56cb750ac83ecbd361439f5ecb5e12d9 (diff) | |
download | YAGE-55a1e0ad7c9d2661c266b2e767bfcb2f944e859f.tar.gz YAGE-55a1e0ad7c9d2661c266b2e767bfcb2f944e859f.zip |
Adding spritebatch class
Diffstat (limited to 'include/YAGE/texturecache.hpp')
-rw-r--r-- | include/YAGE/texturecache.hpp | 24 |
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 |