defold-screenshot

Screenshot extension for the Defold game engine

MIT License

Stars
32

Bot releases are hidden (Show)

defold-screenshot - Defold Screenshot 1.11.0 Latest Release

Published by britzl 4 months ago

Updated to support Defold 1.9.0

defold-screenshot - Defold Screenshot 1.10.0

Published by britzl 6 months ago

CHANGE: Updated to support Emscripten 3 used in Defold 1.7.1

defold-screenshot - Defold Screenshot 1.9.1

Published by britzl over 2 years ago

FIX: Push proper buffer size on the stack for pixels(). Thanks @aglitchman

defold-screenshot - Defold Screenshot 1.9.0

Published by britzl over 2 years ago

NEW: Added support for screenshot.pixels() and screenshot.buffer() to HTML5. Thank you @aglitchman for the contribution!

defold-screenshot - Defold Screenshot 1.8.2

Published by britzl over 2 years ago

  • Fix screenshot.png() callback returning raw pixels
  • Fix memory leak and improve error handling

Thanks @dapetcu21

defold-screenshot - Updated how buffers are used internally

Published by britzl almost 3 years ago

defold-screenshot - Defold Screenshot 1.8.0

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)
defold-screenshot - Defold Screenshot 1.7.5

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.

defold-screenshot - Defold Screenshot 1.7.4

Published by britzl almost 4 years ago

FIX: HTML5 screenshots were not working with the latest version of Defold

defold-screenshot - Defold Screenshot 1.7.3

Published by britzl almost 4 years ago

FIX: Disable extension in headless mode

defold-screenshot - Defold Screenshot 1.7.2

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.

defold-screenshot - Defold Screenshot 1.7.1

Published by britzl about 5 years ago

CHANGE: Updated khrplatform.h include

defold-screenshot - Defold Screenshot 1.7.0

Published by britzl over 5 years ago

NEW: It is now possible to capture a portion of the screen in HTML5. Fixes #4

defold-screenshot - Defold Screenshot 1.6.0

Published by britzl over 5 years ago

NEW: HTML5 support for screenshots using screenshot.html5(cb). Thank you @AGulev and @Jhonnyg!

defold-screenshot - Defold Screenshot 1.5.1

Published by britzl about 6 years ago

FIX: Win32 clang fix

defold-screenshot - Defold Screenshot 1.5

Published by britzl almost 7 years ago

NEW: Windows support

defold-screenshot - Defold Screenshot 1.4

Published by britzl about 7 years ago

Fixed screenshots on iOS

defold-screenshot - Defold Screenshot 1.3

Published by britzl over 7 years ago

Updated to new buffer API functions

defold-screenshot - Defold Screenshot 1.2

Published by britzl over 7 years ago

Added support for getting viewport size if no screenshot dimensions are specified

defold-screenshot - Defold Screenshot 1.1

Published by britzl over 7 years ago

Added library