b2dFreeMesh

Category: 2D Overlay

Syntax:

b2dFreeMesh:Void(handle:Int)


Parameters

Returns

Void



Summary

Frees a mesh loaded with b2dLoadMesh, including the texture it auto-loaded.

Takes handle (mesh handle from b2dLoadMesh, integer).

Returns nothing.

View detailed documentation online



Example
mesh = b2dLoadMesh("Media/level1.bb3d")
; ... play level 1 ...
b2dFreeMesh(mesh)
mesh = b2dLoadMesh("Media/level2.bb3d")

BambooBasic © 2026 Michael Denathorn