diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-25 01:05:45 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-25 01:05:45 +0000 |
commit | a1110d7f594177976f9bd7cda73d11bc2e942a4a (patch) | |
tree | 9eaf1517f097c8a2086920022a2153d5ed137f4f /gfx/models/texture.h | |
parent | Split physical objects from renderable ones (diff) | |
download | ilt-a1110d7f594177976f9bd7cda73d11bc2e942a4a.tar.bz2 ilt-a1110d7f594177976f9bd7cda73d11bc2e942a4a.tar.xz ilt-a1110d7f594177976f9bd7cda73d11bc2e942a4a.zip |
Move texture cache to Texture class
Diffstat (limited to 'gfx/models/texture.h')
-rw-r--r-- | gfx/models/texture.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <special_members.hpp>
#include <string>
+template<typename Obj> class Cache;
+
class Texture {
public:
explicit Texture(const std::string & fileName);
@@ -14,6 +16,8 @@ public: NO_COPY(Texture);
NO_MOVE(Texture);
+ static Cache<Texture> cachedTexture;
+
void Bind() const;
private:
|