b2dLoadMesh

Category: 2D Overlay

Syntax:

b2dLoadMesh:Int(filePath:String)


Parameters

Returns

Int



Summary

Loads a .bb3d mesh file and returns an asset handle (0 on failure).

View detailed documentation online



Example
Global mesh:Int = b2dLoadMesh("Media/dino.bb3d")
Global tex:Int  = b2dMeshTexture(mesh)
Global nv:Int   = b2dMeshVertCount(mesh)
Global nf:Int   = b2dMeshFaceCount(mesh)

BambooBasic © 2026 Michael Denathorn