b2dSetDepth

Category: 2D Overlay

Syntax:

b2dSetDepth:Void(z:Double)


Parameters

Returns

Void



Summary

Sets the depth (0 = near .. 1 = far) for subsequent 2D draws, enabling per-pixel occlusion.

View detailed documentation online



Example
b2dSetDepth(0.5)
b2dDrawQuad(x1,y1,x2,y2,x3,y3,x4,y4,1)  ; occluded per-pixel by nearer faces

BambooBasic © 2026 Michael Denathorn