YAGE  v0.1.3.0
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
texturecache.h
Go to the documentation of this file.
1 
9 #ifndef TEXTURE_CACHE_H
10 #define TEXTURE_CACHE_H
11 
12 #include "texture.h"
13 
14 #include <unordered_map>
15 
16 namespace yage
17 {
18 
20 {
21 private:
22  std::unordered_map<std::string, Texture> texture_map_;
23 
24 public:
25  TextureCache() = default;
26 
27  Texture getTexture(const std::string &texture_path);
29 };
30 
31 } // namespace yage
32 
33 #endif
Texture getTexture(const std::string &texture_path)
Definition: texturecache.cpp:16
std::unordered_map< std::string, Texture > texture_map_
Definition: texturecache.h:22
TextureCache()=default
Definition: texture.h:17
Texture getTextureFromSpriteSheet()
Definition: texturecache.h:19