Vizard 8 » Command Index » Vizard objects » node3d » <node3d:canvas>.getRenderResolution
8.1

<node3d:canvas>.getRenderResolution

Get the canvas render resolution

<node3d:canvas>.getRenderResolution()  

Remarks

Returns the current resolution the canvas is rendering at. The resolution is dependent on the render mode the canvas was configured with.

For <node3d:canvas>.setRenderWorld and <node3d:canvas>.setRenderWorldOverlay, the resolution will be the values specified in those commands.

For <node3d:canvas>.setRenderScreenOrtho and <node3d:canvas>.setRenderScreenPerspective, the resolution will be the current size of the window the canvas is parented to.

Return Value

[width, height]

See also

<node3d:canvas>.setRenderScreenOrtho
<node3d:canvas>.setRenderScreenPerspective
<node3d:canvas>.setRenderWorld
<node3d:canvas>.setRenderWorldOverlay