Images/[Compressed]ImageData can be created using any Data, instead of just files or FileData.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-08-05 23:55:20 -03:00
parent 9654376bdd
commit 2dd6408d00
29 changed files with 130 additions and 72 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ FormatHandler::~FormatHandler()
{
}
bool FormatHandler::canDecode(love::filesystem::FileData* /*data*/)
bool FormatHandler::canDecode(Data* /*data*/)
{
return false;
}
@@ -45,7 +45,7 @@ bool FormatHandler::canEncode(PixelFormat /*rawFormat*/, EncodedFormat /*encoded
return false;
}
FormatHandler::DecodedImage FormatHandler::decode(love::filesystem::FileData* /*data*/)
FormatHandler::DecodedImage FormatHandler::decode(Data* /*data*/)
{
throw love::Exception("Image decoding is not implemented for this format backend.");
}