YAGE
0.02
Yet Another Game Engine
resourcemanager.hpp
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
* resourcemanager.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 RESOURCE_MANAGER_HPP
10
#define RESOURCE_MANAGER_HPP
11
12
#include "
texture.hpp
"
13
#include "
texturecache.hpp
"
14
15
#include <string>
16
17
namespace
yage
18
{
19
20
class
ResourceManager
21
{
22
private
:
23
static
TextureCache
texture_cache_
;
24
25
public
:
26
static
Texture
getTexture
(
const
std::string &texture_path);
27
};
28
29
}
// yage
30
31
#endif
yage::ResourceManager::texture_cache_
static TextureCache texture_cache_
Definition:
resourcemanager.hpp:23
yage::ResourceManager
Definition:
resourcemanager.hpp:20
yage::ResourceManager::getTexture
static Texture getTexture(const std::string &texture_path)
Definition:
resourcemanager.cpp:16
texture.hpp
yage::Texture
Definition:
texture.hpp:17
texturecache.hpp
yage::TextureCache
Definition:
texturecache.hpp:19
yage
Templated matrix class.
Definition:
camera2d.hpp:17
include
YAGE
resourcemanager.hpp
Generated on Thu Aug 24 2017 00:24:55 for YAGE by
1.8.13