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
+3 -3
View File
@@ -22,7 +22,7 @@
// LOVE
#include "common/Object.h"
#include "filesystem/FileData.h"
#include "common/Data.h"
#include "CompressedSlice.h"
namespace love
@@ -46,7 +46,7 @@ public:
* CompressedImageData by this handler.
* @param data The data to parse.
**/
virtual bool canParse(const filesystem::FileData *data) = 0;
virtual bool canParse(const Data *data) = 0;
/**
* Parses compressed image filedata into a list of sub-images and returns
@@ -60,7 +60,7 @@ public:
*
* @return The single block of memory containing the parsed images.
**/
virtual StrongRef<CompressedMemory> parse(filesystem::FileData *filedata,
virtual StrongRef<CompressedMemory> parse(Data *filedata,
std::vector<StrongRef<CompressedSlice>> &images,
PixelFormat &format, bool &sRGB) = 0;