mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
ImageData:encode now supports saving exr image files.
Also add support for loading uint exr image files, and fix a memory leak in the exr loading code. Resolves #1813.
This commit is contained in:
@@ -43,6 +43,7 @@ public:
|
||||
{
|
||||
ENCODED_TGA,
|
||||
ENCODED_PNG,
|
||||
ENCODED_EXR,
|
||||
ENCODED_MAX_ENUM
|
||||
};
|
||||
|
||||
@@ -116,6 +117,11 @@ public:
|
||||
**/
|
||||
virtual void freeRawPixels(unsigned char *mem);
|
||||
|
||||
/**
|
||||
* Frees encoded image memory allocated by the format handler.
|
||||
**/
|
||||
virtual void freeEncodedImage(unsigned char *mem);
|
||||
|
||||
}; // FormatHandler
|
||||
|
||||
} // image
|
||||
|
||||
Reference in New Issue
Block a user