fixing abstract Window.hpp

This commit is contained in:
Clément Le Bihan
2021-05-21 12:07:52 +02:00
parent e86ffbe456
commit 81f662083f
5 changed files with 21 additions and 12 deletions
+6
View File
@@ -42,4 +42,10 @@ Image RAY::Texture::toImage(void) const
const ::Texture &RAY::Texture::getTexture(void) const
{
return this->_texture;
}
bool RAY::Texture::unload()
{
UnloadTexture(this->_texture);
return true;
}
+2 -2
View File
@@ -35,14 +35,14 @@ namespace RAY
Texture &operator=(const Texture &) = default;
//! @brief Texture destructor, will unload ressources
~Texture();
~Texture() override;
//! @brief load ressources from file
//! @param filename: path of input
bool load(const std::string &filename);
//! @brief unload ressources
bool unload();
bool unload() override;
//! @brief get image
::Image toImage(void) const;