bgiSetActiveCanvas

Sets the active canvas for subsequent 3D rendering operations. Takes canvasID (Int). Returns nothing.

BGI GUI

Parameters & Returns

Parameters

canvasID Int

Returns

Void

Quick Summary

Sets the active canvas for subsequent 3D rendering operations. Takes canvasID (Int). Returns nothing.

Technical Exegesis...

Sets the active canvas for subsequent 3D rendering operations. If switching from one canvas to another (g_activeCanvasID > 0 and canvasID != g_activeCanvasID), calls DX12_WaitForGpu() to ensure GPU finishes previous canvas before switching (prevents instance buffer conflicts). If canvasID is -1, switches to main window: sets g_activeCanvasID=-1, calls b2dUpdateCanvasState with g_3D_resolutionWidth/Height to update 2D overlay for main window dimensions. If canvasID > 0, searches g_canvasMap for canvas.

Example

Example.bam
; No example implemented yet