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/texturecache.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 yage/base/texturecache.h (limited to 'yage/base/texturecache.h') diff --git a/yage/base/texturecache.h b/yage/base/texturecache.h new file mode 100644 index 00000000..414c9ec3 --- /dev/null +++ b/yage/base/texturecache.h @@ -0,0 +1,32 @@ +/* ---------------------------------------------------------------------------- + * texturecache.h + * + * Copyright (c) 2017 Yann Herklotz Grave -- MIT License + * See file LICENSE for more details + * ---------------------------------------------------------------------------- + */ + +#ifndef TEXTURE_CACHE_H +#define TEXTURE_CACHE_H + +#include "texture.h" + +#include + +namespace yage +{ + +class TextureCache +{ +private: + std::unordered_map texture_map_; + +public: + TextureCache(); + + Texture getTexture(const std::string &texture_path); +}; + +} // namespace yage + +#endif -- cgit