UI module

present

procedure · 1 overloadsince 0.31.0Source

Draw the UI's display list into the window. Returns false when there was nothing to draw into (the window is hidden) and the frame should be tried again.

present :: (r: *Renderer, ui: *UI_State, clear: Color) -> bool

Draw the UI's display list into the window. Returns false when there was nothing to draw into (the window is hidden) and the frame should be tried again.

Parameters

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

Returns

bool

See also