summaryrefslogtreecommitdiff
path: root/gfx/models/texture.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-25 01:05:45 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-25 01:05:45 +0000
commita1110d7f594177976f9bd7cda73d11bc2e942a4a (patch)
tree9eaf1517f097c8a2086920022a2153d5ed137f4f /gfx/models/texture.cpp
parentSplit physical objects from renderable ones (diff)
downloadilt-a1110d7f594177976f9bd7cda73d11bc2e942a4a.tar.bz2
ilt-a1110d7f594177976f9bd7cda73d11bc2e942a4a.tar.xz
ilt-a1110d7f594177976f9bd7cda73d11bc2e942a4a.zip
Move texture cache to Texture class
Diffstat (limited to 'gfx/models/texture.cpp')
-rw-r--r--gfx/models/texture.cpp3
1 files changed, 3 insertions, 0 deletions
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 <cache.h>
#include <stdexcept>
+Cache<Texture> Texture::cachedTexture;
+
Texture::Texture(const std::string & fileName) : m_texture {}
{
int width, height, numComponents;