在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:britzl/defold-screenshot开源软件地址:https://github.com/britzl/defold-screenshot开源编程语言:C 64.9%开源软件介绍:Defold-ScreenshotScreenshot extension for the Defold game engine InstallationYou can use Defold-Screenshot in your own project by adding this project as a Defold library dependency. Open your game.project file and in the dependencies field under project add:
Or point to the ZIP file of a specific release. APIThe screenshot API provides four versions of each function:
The asynchronous versions will capture the screenshot on POST RENDER. The synchronous versions will capture the screenshot immediately. On some mobile devices this may result in a blank capture. screenshot.png([x, y, w, h, [callback]])Capture a full screen or partial screenshot as a PNG. Example:
screenshot.buffer([x, y, w, h, [callback]])Capture a full screen or partial screenshot as a Defold buffer.
screenshot.pixels([x, y, w, h, [callback]])Capture a full screen or partial screenshot as raw pixels.
Credits |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论