b2dDrawImageQuadUV

Category: 2D Overlay

Syntax:

b2dDrawImageQuadUV:Void(image:Int, x1:Int, y1:Int, u1:Double, v1:Double, x2:Int, y2:Int, u2:Double, v2:Double, x3:Int, y3:Int, u3:Double, v3:Double, x4:Int, y4:Int, u4:Double, v4:Double)


Parameters

Returns

Void



Summary

Like b2dDrawImageQuad, but with an explicit (u,v) at each corner (sub-region / atlas mapping).

View detailed documentation online



Example
; show the top-left quarter of the image on a quad
b2dDrawImageQuadUV(tex, x1,y1,0.0,0.0, x2,y2,0.5,0.0, x3,y3,0.5,0.5, x4,y4,0.0,0.5)

BambooBasic © 2026 Michael Denathorn