From f776df6076725d14679b31168e3ede53c966182e Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 31 Oct 2017 22:11:18 +0000 Subject: renaming base folder --- yage/core/texturecache.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 yage/core/texturecache.h (limited to 'yage/core/texturecache.h') diff --git a/yage/core/texturecache.h b/yage/core/texturecache.h new file mode 100644 index 00000000..b28349ec --- /dev/null +++ b/yage/core/texturecache.h @@ -0,0 +1,33 @@ +/* ---------------------------------------------------------------------------- + * 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() = default; + + Texture getTexture(const std::string &texture_path); + Texture getTextureFromSpriteSheet(); +}; + +} // namespace yage + +#endif -- cgit