blob: 43266ee97a073196d35b5bbe93d113be7e38f2e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|