Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
yage
core
texturecache.h
Go to the documentation of this file.
1
9
#ifndef TEXTURE_CACHE_H
10
#define TEXTURE_CACHE_H
11
12
#include "../data/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
() =
default
;
26
27
Texture
getTexture
(
const
std::string &texture_path,
int
x = 1,
int
y = 1);
28
Texture
getTextureFromSpriteSheet
();
29
};
30
31
}
// namespace yage
32
33
#endif
yage::TextureCache::TextureCache
TextureCache()=default
yage::Texture
Definition:
texture.h:17
yage::TextureCache::getTextureFromSpriteSheet
Texture getTextureFromSpriteSheet()
yage::TextureCache
Definition:
texturecache.h:19
yage::TextureCache::getTexture
Texture getTexture(const std::string &texture_path, int x=1, int y=1)
Definition:
texturecache.cpp:16
Generated on Thu Apr 5 2018 14:21:41 by
1.8.6