From 7c03d93c367b842c464dca30e121bc4c20547c36 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 Jan 2022 16:44:19 +0000 Subject: Generic solution for glGen/glDel arrays, then tidy-up the uses --- gfx/models/texture.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gfx/models/texture.h') diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 8bbba85..6dbe9af 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -1,9 +1,8 @@ #ifndef TEXTURE_H #define TEXTURE_H -#include #include -#include +#include template class Cache; @@ -11,17 +10,12 @@ class Texture { public: explicit Texture(const std::filesystem::path & fileName); - virtual ~Texture(); - - NO_COPY(Texture); - NO_MOVE(Texture); - static Cache cachedTexture; void Bind() const; private: - GLuint m_texture; + glTexture m_texture; }; #endif -- cgit v1.2.3