diff options
Diffstat (limited to 'yage/base/resourcemanager.h')
-rw-r--r-- | yage/base/resourcemanager.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/yage/base/resourcemanager.h b/yage/base/resourcemanager.h new file mode 100644 index 00000000..3c5081c4 --- /dev/null +++ b/yage/base/resourcemanager.h @@ -0,0 +1,31 @@ +/* ---------------------------------------------------------------------------- + * resourcemanager.h + * + * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + +#ifndef RESOURCE_MANAGER_H +#define RESOURCE_MANAGER_H + +#include "texture.h" +#include "texturecache.h" + +#include <string> + +namespace yage +{ + +class ResourceManager +{ +private: + static TextureCache texture_cache_; + +public: + static Texture getTexture(const std::string &texture_path); +}; + +} // namespace yage + +#endif |