DRAWING FUNCTIONS

ResetFrame

Clears the current frame without submitting it.

Syntax

ONYX.ResetFrame()

Parameters

None

Return(s)

None

Behavior

  • Removes the current coroutine build buffer and the last submitted render buffer.
  • Cancels any pending SubmitFrame for this coroutine.
  • Takes effect immediately on the next overlay rendering; other coroutines are untouched.

Example(s)

ONYX.ResetFrame()
ONYX.BeginFrame()
ONYX.DrawText(40, 40, "reset", 16, 1, 1, 1, 1)
ONYX.SubmitFrame()