UI module

render_to_image

procedure · 1 overloadsince 0.31.0Source

Draw the UI's display list offscreen and read the pixels back. Free pixels with array_free.

render_to_image :: (r: *Renderer, ui: *UI_State, clear: Color) -> Rendered_Image

Draw the UI's display list offscreen and read the pixels back. Free pixels with array_free.

Parameters

r: *Renderer
the offscreen renderer.
ui: *UI_State
the UI whose display list to draw.
clear: Color
the colour the target is cleared to first.

Returns

See also