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 
10 #pragma once
11 
12 #include "texturecache.h"
13 
14 #include <string>
15 
16 namespace yage
17 {
18 
19 struct Texture;
20 
22 {
23 private:
24  static TextureCache texture_cache_;
25 
26 public:
27  static Texture getTexture(std::string const &texture_path, int x = 1,
28  int y = 1);
29 };
30 
31 } // namespace yage
Definition: resourcemanager.h:21
-*- c++ -*-
static Texture getTexture(std::string const &texture_path, int x=1, int y=1)
Definition: resourcemanager.cpp:18
Definition: texture.h:17
Definition: texturecache.h:19