YAGE
v0.1.1
Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
texturecache.h
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
* texturecache.h
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_H
10
#define TEXTURE_CACHE_H
11
12
#include "
texture.h
"
13
14
#include <unordered_map>
15
16
namespace
yage
17
{
18
19
class
TextureCache
20
{
21
private
:
22
std::unordered_map<std::string, Texture>
texture_map_
;
23
24
public
:
25
TextureCache
();
26
27
Texture
getTexture
(
const
std::string &texture_path);
28
};
29
30
}
// namespace yage
31
32
#endif
yage::TextureCache::getTexture
Texture getTexture(const std::string &texture_path)
Definition:
texturecache.cpp:17
yage::TextureCache::texture_map_
std::unordered_map< std::string, Texture > texture_map_
Definition:
texturecache.h:22
texture.h
yage::Texture
Definition:
texture.h:17
yage::TextureCache
Definition:
texturecache.h:19
yage::TextureCache::TextureCache
TextureCache()
yage
base
texturecache.h
Generated on Fri Sep 22 2017 00:09:01 for YAGE by
1.8.6