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.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gfx/models/texture.cpp') diff --git a/gfx/models/texture.cpp b/gfx/models/texture.cpp index a388b32..90ec016 100644 --- a/gfx/models/texture.cpp +++ b/gfx/models/texture.cpp @@ -1,7 +1,10 @@ #include "texture.h" #include "stb_image.h" +#include #include +Cache Texture::cachedTexture; + Texture::Texture(const std::string & fileName) : m_texture {} { int width, height, numComponents; -- cgit v1.2.3