b2dDrawImageQuad

Category: 2D Overlay

Syntax:

b2dDrawImageQuad:Void(image:Int, x1:Int, y1:Int, x2:Int, y2:Int, x3:Int, y3:Int, x4:Int, y4:Int)


Parameters

Returns

Void



Summary

Maps a whole image onto an arbitrary 4-corner quad (flat, no depth).

View detailed documentation online



Example
; paint a crate texture onto one face of a spinning cube
b2dDrawImageQuad(crate, sx0,sy0, sx1,sy1, sx2,sy2, sx3,sy3)

BambooBasic © 2026 Michael Denathorn