Releases: britzl/defold-screenshot
Releases · britzl/defold-screenshot
Defold Screenshot 1.11.0
Defold Screenshot 1.10.0
CHANGE: Updated to support Emscripten 3 used in Defold 1.7.1
Defold Screenshot 1.9.1
FIX: Push proper buffer size on the stack for pixels()
. Thanks @aglitchman
Defold Screenshot 1.9.0
NEW: Added support for screenshot.pixels()
and screenshot.buffer()
to HTML5. Thank you @aglitchman for the contribution!
Defold Screenshot 1.8.2
- Fix
screenshot.png()
callback returning raw pixels - Fix memory leak and improve error handling
Thanks @dapetcu21
Updated how buffers are used internally
1.8.1 Use constructor for dmScript::LuaHBuffer (#16)
Defold Screenshot 1.8.0
NEW: Added an async/callback option for all three screenshot formats. Example:
-- fullscreen with callback
screenshot.png(function(self, image, w, h)
-- do something with image
end)
-- partial with callback
-- 100x200 pixels starting from 0,0 (lower left corner)
screenshot.png(0, 0, 100, 200, function(self, image, w, h)
-- do something with image
end)
-- fullscreen
local image, w, h = screenshot.png()
-- partial
-- 100x200 pixels starting from 0,0 (lower left corner)
local image, w, h = screenshot.png(0, 0, 100, 200)
Defold Screenshot 1.7.5
FIX: Updated to support latest version of Emscripten, released in Defold 1.2.178
FIX: Capturing a partial screenshot in HTML5 didn't save the same area as in a desktop build.
Defold Screenshot 1.7.4
FIX: HTML5 screenshots were not working with the latest version of Defold
Defold Screenshot 1.7.3
FIX: Disable extension in headless mode