From 43a87590f45aa6e55724d30d0c2d0d34b407a57e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Jan 2021 18:54:26 +0000 Subject: First cut modernizing and sanitizing --- texture.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'texture.h') diff --git a/texture.h b/texture.h index df9f287..9955f01 100644 --- a/texture.h +++ b/texture.h @@ -6,20 +6,17 @@ class Texture { public: - Texture(const std::string & fileName); + explicit Texture(const std::string & fileName); - void Bind(); + Texture(const Texture &) = delete; + void operator=(const Texture &) = delete; virtual ~Texture(); + void Bind() const; + protected: private: - Texture(const Texture & texture) { } - void - operator=(const Texture & texture) - { - } - GLuint m_texture; }; -- cgit v1.2.3