DRAWING FUNCTIONS

SubmitFrame

Submits the current frame to the renderer.

Syntax

ONYX.SubmitFrame()

Parameters

None

Return(s)

None

Behavior

  • Flags the current build buffer as ready; the next overlay swap displays it.
  • The submitted frame stays visible until the next SubmitFrame.
  • Does not clear the displayed frame, it replaces it on swap.
  • The call is non-blocking.

Example(s)

ONYX.BeginFrame()
ONYX.DrawLine(100, 100, 300, 200, 1, 1, 1, 1)
ONYX.DrawText(110, 90, "overlay", 16, 1, 1, 1, 1)
ONYX.SubmitFrame()