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)
natiny.texture.destroy(tex)
Destroys a texture and frees its GPU resources.
| Name | Type | Description |
|---|---|---|
tex |
number |
Texture handle from natiny.texture.create |
natiny.texture.destroy(tex)