natiny_window_unbind

C
void natiny_window_unbind(void);

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

C
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 NATINY_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.