bgiCreateCanvas3D

Deprecated - creates a canvas (now 2D-only). Use bgiCreateCanvas instead.

BGI GUI

Parameters & Returns

Parameters

x Int
y Int
width Int
height Int
parent Int

Returns

Int

Quick Summary

Deprecated - creates a canvas (now 2D-only). Use bgiCreateCanvas instead.

Technical Exegesis...

Kept for backward compatibility with older projects and .bgi layouts. Canvases are 2D-only now, so this creates the same 2D canvas as bgiCreateCanvas - the old depth-buffered 3D canvas path was retired with the 3D engine. Prefer bgiCreateCanvas in new code. See bgiCreateCanvas for the drawing flow.

Example

Example.bam
canvas = bgiCreateCanvas(20, 20, 480, 320, window)   ; preferred (2D)
bgiSetActiveCanvas(canvas)
b2dCls()
; ... b2d* draw calls ...
bgiFlipCanvas(canvas)
bgiSetActiveCanvas(-1)