mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Reworked ImageData:encode:
- It now returns a FileData containing the encoded ImageData. - The first argument is now the format to encode to. - The second argument is now the filename to write to, and is optional. No file will be written if a filename is not given.
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
|
||||
// LOVE
|
||||
#include "FormatHandler.h"
|
||||
#include "filesystem/File.h"
|
||||
#include "image/ImageData.h"
|
||||
|
||||
// C++
|
||||
@@ -46,7 +45,7 @@ public:
|
||||
virtual ~ImageData();
|
||||
|
||||
// Implements image::ImageData.
|
||||
virtual void encode(love::filesystem::File *f, ImageData::EncodedFormat format);
|
||||
virtual love::filesystem::FileData *encode(EncodedFormat format, const char *filename);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user