YAGE  v0.1.4.0
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 
17 #ifndef RESOURCE_MANAGER_H
18 #define RESOURCE_MANAGER_H
19 
20 #include "texturecache.h"
21 
22 #include <string>
23 
24 namespace yage
25 {
26 
27 struct Texture;
28 
30 {
31 private:
32  static TextureCache texture_cache_;
33 
34 public:
35  static Texture getTexture(const std::string &texture_path, int x = 1,
36  int y = 1);
37 };
38 
39 } // namespace yage
40 
41 #endif
Definition: resourcemanager.h:29
Definition: texture.h:17
Definition: texturecache.h:19
static Texture getTexture(const std::string &texture_path, int x=1, int y=1)
Definition: resourcemanager.cpp:17