ressources are not reloadable, ressource interface deleted

This commit is contained in:
arthur.jamet
2021-05-28 12:41:21 +02:00
parent 590545243d
commit b92b35f191
17 changed files with 123 additions and 364 deletions

View File

@@ -13,11 +13,6 @@ RAY::Image::Image(const std::string &filename):
{
}
RAY::Image::Image()
{
}
RAY::Image::Image(RAY::Texture &texture):
_image(GetTextureData(texture))
{
@@ -29,24 +24,12 @@ RAY::Image::~Image()
UnloadImage(_image);
}
bool RAY::Image::load(const std::string &filename)
{
this->_image = LoadImage(filename.c_str());
return true;
}
bool RAY::Image::exportTo(const std::string &outputPath)
{
ExportImage(_image, outputPath.c_str());
return true;
}
bool RAY::Image::unload()
{
UnloadImage(_image);
return true;
}
RAY::Image::operator ::Image() const
{
return _image;