From 60072c1d8089ffd3294e76636198d14710be95b8 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 9 Sep 2017 07:55:22 +0100 Subject: Restructuring --- yage/base/resourcemanager.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 yage/base/resourcemanager.h (limited to 'yage/base/resourcemanager.h') 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 -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + +#ifndef RESOURCE_MANAGER_H +#define RESOURCE_MANAGER_H + +#include "texture.h" +#include "texturecache.h" + +#include + +namespace yage +{ + +class ResourceManager +{ +private: + static TextureCache texture_cache_; + +public: + static Texture getTexture(const std::string &texture_path); +}; + +} // namespace yage + +#endif -- cgit