Category: BGI GUI
Syntax:
bgiCreateCanvas3D:Int(x:Int, y:Int, width:Int, height:Int, parent:Int)
Int
Creates a canvas, as bgiCreateCanvas. The 3D engine is gone, so a 3D canvas is a 2D one.
Takes x (Int), y (Int), width (Int), height (Int) and parent (Int). It needs b2dGraphics (the main window can be hidden: BBR_WINDOW_MODE_HIDDEN).
Returns the canvas ID, or 0 without b2dGraphics or if parent is not found.
View detailed documentation online
canvas = bgiCreateCanvas(20, 20, 480, 320, window) ; preferred (2D) bgiSetActiveCanvas(canvas) b2dCls() ; ... b2d* draw calls ... bgiFlipCanvas(canvas) bgiSetActiveCanvas(-1)
BambooBasic © 2026 Michael Denathorn