mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-03 02:23:44 +00:00
remove copy-construct-ability of textures
This commit is contained in:
@@ -18,11 +18,6 @@ RAY::Texture::Texture(const Image &image):
|
||||
|
||||
}
|
||||
|
||||
RAY::Texture::Texture()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
RAY::Texture::~Texture()
|
||||
{
|
||||
UnloadTexture(this->_texture);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user