mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-23 06:45:13 +00:00
ressources are not reloadable, ressource interface deleted
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user