bgiCreateCanvas3D

Creates an embedded DirectX12 3D rendering canvas within a BGI window. Takes x (Int), y (Int), width (Int), height (Int), and parent (Int). Returns canvas ID, or 0 if initialization failed.

BGI GUI

Parameters & Returns

Parameters

x Int
y Int
width Int
height Int
parent Int

Returns

Int

Quick Summary

Creates an embedded DirectX12 3D rendering canvas within a BGI window. Takes x (Int), y (Int), width (Int), height (Int), and parent (Int). Returns canvas ID, or 0 if initialization failed.

Technical Exegesis...

Creates an embedded DirectX12 3D rendering canvas within a BGI window. Checks g_3D_pDevice and g_commandListManager initialized (requires b3dGraphics3D() first). Gets graphics command queue from command list manager. Searches gizmoMap for parent BGI window via bgiGetGizmoHWND. Registers "DX12CanvasClass3D" window class (once) with CanvasWindowProc. Creates child window with WS_CHILD | WS_VISIBLE at (x, y, width, height) position.

Example

Example.bam
; No example implemented yet