natiny.window.unbind

Lua
natiny.window.unbind()

Ends the current window frame. If another window was suspended by a nested bind, starts a new frame for that window; otherwise leaves no window bound.

Example

Lua
natiny.window.unbind()

Notes

  • Calling with no bound window has no effect.
  • Any open surface target sets are dropped and their count is reported to standard error. See The bind stack.
  • Inside natiny.backend.loop, submission and presentation occur after the loop callback returns. Outside the loop, they occur during this call.
  • In SCALE_MODE_STRETCH the frame is drawn into an offscreen canvas, and the canvas is copied to the window once when the engine frame is presented.