Frees a mesh loaded with b2dLoadMesh, including the texture it auto-loaded.
Takes handle (mesh handle from b2dLoadMesh, integer).
Returns nothing.
2D Overlay
Parameters & Returns
Parameters
handleInt
Returns
Void
Quick Summary
Frees a mesh loaded with b2dLoadMesh, including the texture it auto-loaded.
Takes handle (mesh handle from b2dLoadMesh, integer).
Returns nothing.
Technical Exegesis...
Frees a mesh loaded with b2dLoadMesh: its vertex frames, faces, UVs, material palette and animation clips, plus the texture image b2dLoadMesh auto-loaded for it (the handle b2dMeshTexture returned is freed too, so don't draw with it afterwards). Takes handle (mesh handle from b2dLoadMesh, integer). Returns nothing. Meshes are not freed automatically, so a program that loads meshes repeatedly (level changes, swapping models) should free the old one first or it will leak memory.
Frees a mesh loaded with b2dLoadMesh: its vertex frames, faces, UVs, material palette and animation clips, plus the texture image b2dLoadMesh auto-loaded for it (the handle b2dMeshTexture returned is freed too, so don't draw with it afterwards). Takes handle (mesh handle from b2dLoadMesh, integer). Returns nothing. Meshes are not freed automatically, so a program that loads meshes repeatedly (level changes, swapping models) should free the old one first or it will leak memory. Safe to call with 0 or an already-freed handle (silent no-op). The handle is invalid afterwards: the mesh query functions (b2dMeshFaceCount, b2dMeshVertCount, ...) return 0 for it. Any face data you cached in your own arrays is unaffected. Related: b2dLoadMesh loads the mesh freed by this function, b2dMeshTexture returns the texture that is freed along with it.