GUIGraphics.onScreenshot

Want a screenshot? Want to generate a mesh or a voxel out of your render? Override this function and call IUIContext.requestUIScreenshot()

class GUIGraphics
nothrow @nogc
void
onScreenshot
(
ImageRef!RGBA finalRender
,,
ImageRef!RGBA diffuseMap
,
ImageRef!L16 depthMap
,
ImageRef!RGBA materialMap
)

Parameters

pixelFormat WindowPixelFormat

= 1 if pixel format is BGRA8

pixelFormat WindowPixelFormat

= 2 if pixel format is ARGB8 You must support all three, sorry. All maps have the same dimension, which is the logical pixel size. Warning: nothing to do with the Screencap key, it doesn't get triggered like that.

Meta