natiny_window_destroy
void natiny_window_destroy(NatinyWindow id);
Destroys a window and frees its resources.
Parameters
| Name | Type | Description |
|---|---|---|
id |
NatinyWindow |
Window handle from natiny_window_create |
Example
NatinyWindow win = natiny_window_create("Temp", 400, 300);
// ...
natiny_window_destroy(win);
Notes
natiny_window_get_alivereportsfalsefrom this call onward, and the handle never resolves again - a later window reusing its place gets a handle of its own.- Called from inside
natiny_backend_loop, the window is released at the next frame boundary rather than in the middle of the frame that asked. - The loop keeps running as long as another window is open. Only destroying the last one ends it.