mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Images/[Compressed]ImageData can be created using any Data, instead of just files or FileData.
--HG-- branch : minor
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user