mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Improved performance and reduced temporary memory usage of love.graphics.newScreenshot and Canvas:getImageData
This commit is contained in:
@@ -69,9 +69,11 @@ public:
|
||||
* @param The width of the ImageData.
|
||||
* @param The height of the ImageData.
|
||||
* @param The data to load into the ImageData.
|
||||
* @param Whether the new ImageData should take ownership of the data or
|
||||
* copy it.
|
||||
* @return The new ImageData.
|
||||
**/
|
||||
virtual ImageData *newImageData(int width, int height, void *data) = 0;
|
||||
virtual ImageData *newImageData(int width, int height, void *data, bool own = false) = 0;
|
||||
|
||||
/**
|
||||
* Creates new CompressedData from FileData.
|
||||
|
||||
Reference in New Issue
Block a user