natiny_texture_destroy

C
void natiny_texture_destroy(NatinyTexture texture);

Destroys a texture and frees its GPU resources.

Parameters

Name Type Description
texture NatinyTexture Texture handle from natiny_texture_create

Example

C
natiny_texture_destroy(tex);

Notes

  • The handle becomes invalid. Invalid or already destroyed handles are ignored.