Function in ldk_ui.h

ldk_ui_begin_frame

Start a UI frame with the current input snapshots and viewport.

LDK_API void ldk_ui_begin_frame(
 LDKUIContext *ctx,
 float delta,
 LDKMouseState const *mouse,
 LDKKeyboardState const *keyboard,
 LDKUITextInputState const *text_input,
 LDKUIRect viewport
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
float delta
Elapsed time since the preceding frame, in seconds.
LDKMouseState const *mouse
Mouse used by this operation.
LDKKeyboardState const *keyboard
Keyboard used by this operation.
LDKUITextInputState const *text_input
Text input used by this operation.
LDKUIRect viewport
Viewport used by this operation.
Function in ldk_ui.h

ldk_ui_end_frame

Finish the current UI frame and prepare render data.

LDK_API void ldk_ui_end_frame(LDKUIContext *ctx);

Parameters

LDKUIContext *ctx
UI context used by this operation.
Function in ldk_ui.h

ldk_ui_get_render_data

Access draw data produced by the completed UI frame.

LDK_API LDKUIRenderData const * ldk_ui_get_render_data(LDKUIContext const *ctx);

Parameters

LDKUIContext const *ctx
UI context used by this operation.

Returns

Pointer to the requested object or data; NULL when unavailable.