bgiGetCanvasHeight

Returns the height in pixels of a canvas. Takes canvasID (Int). Returns 0.

BGI GUI

Parameters & Returns

Parameters

canvasID Int

Returns

Int

Quick Summary

Returns the height in pixels of a canvas. Takes canvasID (Int). Returns 0.

Technical Exegesis...

Returns the height in pixels of a canvas. Searches g_canvasMap for canvasID. If not found, returns 0. Returns canvas.height field.

This function queries canvas dimensions. Height is set during bgiCreateCanvas3D creation. Returns 0 for invalid canvas ID (ambiguous - 0 is invalid height). Use for aspect ratio calculations, viewport setup, scissor rects. Canvas dimensions are fixed at creation (no resize support currently). Common pattern: get width/height for camera projection matrix setup.

Example

Example.bam
; No example implemented yet