DRAWING FUNCTIONS
BeginFrame
Starts a new drawing frame.
Syntax
ONYX.BeginFrame()Parameters
None
Return(s)
None
Behavior
- Clears the build buffer only and leaves the currently displayed frame untouched.
- Every draw call after it appends to the new buffer.
- Calling it twice in the same tick clears the buffer again.
- It does not render or submit anything by itself.
Example(s)
ONYX.BeginFrame()
ONYX.DrawLine(100, 100, 300, 300, 1, 1, 1, 1)
ONYX.DrawText(100, 320, "ONYXS", 18, 1, 1, 1, 1)
ONYX.SubmitFrame()