Returns the width in pixels of a canvas.
Takes canvasID (Int).
Returns 0.
BGI GUI
Parameters & Returns
Parameters
canvasIDInt
Returns
Int
Quick Summary
Returns the width in pixels of a canvas.
Takes canvasID (Int).
Returns 0.
Technical Exegesis...
Returns the width in pixels of a canvas. Searches g_canvasMap for canvasID. If not found, returns 0. Returns canvas.width field.
This function queries canvas dimensions. Width is set during bgiCreateCanvas3D creation. Returns 0 for invalid canvas ID (ambiguous - 0 is invalid width). 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.
Returns the width in pixels of a canvas. Searches g_canvasMap for canvasID. If not found, returns 0. Returns canvas.width field.
This function queries canvas dimensions. Width is set during bgiCreateCanvas3D creation. Returns 0 for invalid canvas ID (ambiguous - 0 is invalid width). 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. Pair with bgiGetCanvasHeight for complete dimensions.