natiny_render_viewport_end
void natiny_render_viewport_end(void);
Ends the current viewport and restores the full window or surface render target as the local drawing area.
Example
natiny_render_viewport_begin(0, 0, 320, 180);
draw_scene();
natiny_render_viewport_end();
Notes
- Calling this function when no viewport is active has no effect.
- Ending a viewport clears its scissor stack and restores the render target's
dimensions for 2D drawing,
natiny_render_cover(), and cameras bound afterwards.