Screenshot extension for the Defold game engine
MIT License
Bot releases are hidden (Show)
Updated to support Defold 1.9.0
Published by britzl 6 months ago
CHANGE: Updated to support Emscripten 3 used in Defold 1.7.1
Published by britzl over 2 years ago
FIX: Push proper buffer size on the stack for pixels()
. Thanks @aglitchman
Published by britzl over 2 years ago
NEW: Added support for screenshot.pixels()
and screenshot.buffer()
to HTML5. Thank you @aglitchman for the contribution!
Published by britzl over 2 years ago
screenshot.png()
callback returning raw pixelsThanks @dapetcu21
Published by britzl almost 3 years ago
Published by britzl over 3 years ago
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)
Published by britzl almost 4 years ago
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.
Published by britzl almost 4 years ago
FIX: HTML5 screenshots were not working with the latest version of Defold
Published by britzl almost 4 years ago
FIX: Disable extension in headless mode
Published by britzl almost 5 years ago
FIX: HTML5 screenshots inverted y-coordinates, treating 0,0 as top left corner of the screen instead of bottom left corner as on other platforms.
Published by britzl about 5 years ago
CHANGE: Updated khrplatform.h include
Published by britzl over 5 years ago
NEW: It is now possible to capture a portion of the screen in HTML5. Fixes #4
Published by britzl over 5 years ago
NEW: HTML5 support for screenshots using screenshot.html5(cb). Thank you @AGulev and @Jhonnyg!
Published by britzl about 6 years ago
FIX: Win32 clang fix
Published by britzl almost 7 years ago
NEW: Windows support
Published by britzl about 7 years ago
Fixed screenshots on iOS
Published by britzl over 7 years ago
Updated to new buffer API functions
Published by britzl over 7 years ago
Added support for getting viewport size if no screenshot dimensions are specified
Published by britzl over 7 years ago
Added library