b2dGraphics

Category: 2D Overlay

Syntax:

b2dGraphics:Int(resWidth:Int, resHeight:Int, graphicsMode:Int)


Parameters

Returns

Int



Summary

Opens the graphics window and initialises the 2D rendering context. Call once in Main() before any drawing.

View detailed documentation online



Example
b2dGraphics(800, 600, BBR_WINDOW_MODE_WT)
sysSetWindowTitle("My App")

BambooBasic © 2026 Michael Denathorn