Draw the UI's display list offscreen and read the pixels back. Free pixels with array_free.
- r: the offscreen renderer.
- ui: the UI whose display list to draw.
- clear: the colour the target is cleared to first.
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.