natiny.texture.destroy
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
natiny.texture.destroy(tex)
Notes
- The handle becomes invalid. Invalid or already destroyed handles are ignored.