Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
resourcemanager.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include "texturecache.h"
12 
13 #include <string>
14 
15 namespace yage
16 {
17 
18 struct Texture;
19 
21 {
22 private:
23  static TextureCache texture_cache_;
24 
25 public:
26  static Texture getTexture(const std::string &texture_path, int x = 1,
27  int y = 1);
28 };
29 
30 } // namespace yage
Definition: resourcemanager.h:20
Definition: texture.h:16
Definition: texturecache.h:18
static Texture getTexture(const std::string &texture_path, int x=1, int y=1)
Definition: resourcemanager.cpp:17