b2dMeshTexture

Category: 2D Overlay

Syntax:

b2dMeshTexture:Int(handle:Int)


Parameters

Returns

Image handle of the texture, or 0



Summary

The image handle of the texture that b2dLoadMesh loaded automatically, ready to pass to b2dDrawImageQuadDepthUV.

Returns 0 when the mesh has no texture (colour it with b2dMeshFaceR/G/B instead), when its texture file could not be loaded, or for an unknown handle.

View detailed documentation online



Example
Print b2dMeshTexture(mesh)

See examples/Runtime/30 - Meshes.


BambooBasic © 2026 Michael Denathorn