From a1110d7f594177976f9bd7cda73d11bc2e942a4a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 25 Jan 2021 01:05:45 +0000 Subject: Move texture cache to Texture class --- gfx/models/texture.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gfx/models/texture.h') diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 6ebf88d..30ba953 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -5,6 +5,8 @@ #include #include +template class Cache; + class Texture { public: explicit Texture(const std::string & fileName); @@ -14,6 +16,8 @@ public: NO_COPY(Texture); NO_MOVE(Texture); + static Cache cachedTexture; + void Bind() const; private: -- cgit v1.2.3