Improved performance and reduced temporary memory usage of love.graphics.newScreenshot and Canvas:getImageData

This commit is contained in:
Alex Szpakowski
2013-06-15 22:07:16 -03:00
parent 15535517d6
commit f25efcc8af
7 changed files with 18 additions and 12 deletions
+3 -1
View File
@@ -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.