natiny_mesh_destroy
void natiny_mesh_destroy(NatinyMesh mesh);
Frees the geometry: the vertices of every part, and the textures that were loaded from the source file's materials.
Parameters
| Name | Type | Description |
|---|---|---|
mesh |
NatinyMesh |
Mesh handle |
Example
natiny_mesh_destroy(mesh);
Notes
- Do not use the mesh handle after destroy.
- Textures returned by
natiny_mesh_get_part_texturebecome invalid as well - they belong to the mesh. - Models still pointing at the mesh draw nothing.