YAGE
0.02
Yet Another Game Engine
texturecache.hpp
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
* texturecache.hpp
3
*
4
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5
* See file LICENSE for more details
6
* ----------------------------------------------------------------------------
7
*/
8
9
#ifndef TEXTURE_CACHE_HPP
10
#define TEXTURE_CACHE_HPP
11
12
#include "
texture.hpp
"
13
14
#include <unordered_map>
15
16
namespace
yage
{
17
18
class
TextureCache
{
19
private
:
20
std::unordered_map<std::string, Texture>
texture_map_
;
21
22
public
:
23
TextureCache
();
24
25
Texture
getTexture
(
const
std::string& texture_path);
26
};
27
28
}
// yage
29
30
#endif
yage::TextureCache::getTexture
Texture getTexture(const std::string &texture_path)
Definition:
texturecache.cpp:18
yage::TextureCache::texture_map_
std::unordered_map< std::string, Texture > texture_map_
Definition:
texturecache.hpp:20
texture.hpp
yage::Texture
Definition:
texture.hpp:16
yage::TextureCache
Definition:
texturecache.hpp:18
yage
Templated matrix class.
Definition:
camera2d.hpp:17
yage::TextureCache::TextureCache
TextureCache()
include
YAGE
texturecache.hpp
Generated on Wed Aug 23 2017 23:06:00 for YAGE by
1.8.13