natiny_backend_shutdown

C
void natiny_backend_shutdown(void);

Shuts down the Natiny engine and releases its internal resources. In a web build, a call made after natiny_backend_loop has scheduled the browser loop is a no-op because those resources must remain alive for its callbacks.

Example

C
int main(void) {
    natiny_backend_init(NATINY_BACKEND_AUTO);
    // ...
    natiny_backend_shutdown();
    return 0;
}

Notes

  • Should be the last Natiny call before the process exits.