mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +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:
@@ -61,7 +61,7 @@ public:
|
||||
* @param data The FileData containing the encoded image data.
|
||||
* @return The new ImageData.
|
||||
**/
|
||||
ImageData *newImageData(love::filesystem::FileData *data);
|
||||
ImageData *newImageData(Data *data);
|
||||
|
||||
/**
|
||||
* Creates empty ImageData with the given size.
|
||||
@@ -87,13 +87,13 @@ public:
|
||||
* @param data The FileData containing the compressed image data.
|
||||
* @return The new CompressedImageData.
|
||||
**/
|
||||
CompressedImageData *newCompressedData(love::filesystem::FileData *data);
|
||||
CompressedImageData *newCompressedData(Data *data);
|
||||
|
||||
/**
|
||||
* Determines whether a FileData is Compressed image data or not.
|
||||
* @param data The FileData to test.
|
||||
**/
|
||||
bool isCompressed(love::filesystem::FileData *data);
|
||||
bool isCompressed(Data *data);
|
||||
|
||||
std::vector<StrongRef<ImageData>> newCubeFaces(ImageData *src);
|
||||
std::vector<StrongRef<ImageData>> newVolumeLayers(ImageData *src);
|
||||
|
||||
Reference in New Issue
Block a user