igiImage

Category: IGI (in-game GUI) — Text and buttons

Syntax:

igiImage:Void(image:Int, w:Int, h:Int)


Parameters

Returns

Nothing



Summary

Draws a b2d image inside the GUI. On the web an image that hasn't loaded yet keeps its space empty until it arrives. Palette-cycling images and render targets aren't supported.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.



Example
Global icon:Int = b2dLoadImage("Media/coin.png")
; ...
igiImage(icon, 32, 32)
igiSameLine()
igiText("x " & ToString(coins))

BambooBasic © 2026 Michael Denathorn