natiny.texture.destroy

Lua
natiny.texture.destroy(tex)

Destroys a texture and frees its GPU resources.

Parameters

Name Type Description
tex number Texture handle from natiny.texture.create

Example

Lua
natiny.texture.destroy(tex)

Notes

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