bgiInitBGI

Category: BGI GUI

Syntax:

bgiInitBGI:Int(BGIFontName:String, BGIFontSize:Int)


Parameters

Returns

Int



Summary

Initializes the BGI (BambooGizmoInterface) GUI system.

Takes BGIFontName (String) and BGIFontSize (Int).

Returns 1 on success, 0 if font creation fails.

View detailed documentation online



Example

;No example implemented yet



On the Web

Call it from Main: like b2dGraphics it is asynchronous on the web. If b2dGraphics hasn't been called, graphics start at the page canvas's size (800x600 unless you call b2dGraphics first). All GUI text is drawn in Liberation Sans at the size given; the font name isn't used. See BGI on the web.


BambooBasic © 2026 Michael Denathorn