Function _IrrSetCameraAspectRatio

au3Irr2

au3Irr2 Function Reference

_IrrSetCameraAspectRatio

Sets the aspect ratio of the camera in the same way you think of standard screens and widescreens.

#Include <au3Irrlicht2.au3>
_IrrSetCameraAspectRatio($h_Camera, $f_AspectRatio)

 

Parameters

$h_Camera Handle of a camera node.
$f_AspectRatio Aspect ratio as a float value.

 

Return Value

Success: True
Failure: False

 

Remarks

A widescreen usually has an aspect ratio of 16:9 or 16/9 = 1.78. The camera apect ratio is set up automatically.
However if you are using split screen effects you may need to change the camera aspect ratio.

 

Related

[todo: functionName, functionName]