singleton for window

This commit is contained in:
arthur.jamet
2021-05-21 12:38:10 +02:00
parent 5d2493ad63
commit e4bd77197a
11 changed files with 47 additions and 24 deletions

View File

@@ -34,6 +34,12 @@ bool RAY::Texture::load(const std::string &filename)
return true;
}
bool RAY::Texture::unload()
{
UnloadTexture(this->_texture);
return true;
}
Image RAY::Texture::toImage(void) const
{
return GetTextureData(_texture);