remove copy-construct-ability of textures

This commit is contained in:
arthur.jamet
2021-05-28 09:27:44 +02:00
parent 4ef26b9f87
commit 230a97a4da
2 changed files with 3 additions and 11 deletions
-5
View File
@@ -18,11 +18,6 @@ RAY::Texture::Texture(const Image &image):
}
RAY::Texture::Texture()
{
}
RAY::Texture::~Texture()
{
UnloadTexture(this->_texture);
+3 -6
View File
@@ -25,14 +25,11 @@ namespace RAY
//! @param image: reference to image to create texture from
Texture(const Image &image);
//! @brief A default copy constructor
Texture(const Texture &) = default;
//! @brief A default constructor, no ressources loaded
Texture();
//! @brief A texture is not copy constructable
Texture(const Texture &) = delete;
//! @brief An image is assignable
Texture &operator=(const Texture &) = default;
Texture &operator=(const Texture &) = delete;
//! @brief Texture destructor, will unload ressources
~Texture() override;