DarkBASIC Professional Help File

DX11 SET CAMERA ASPECT RATIO

Sets the aspect ratio of the specified camera.
Unless you want to achieve specific results, this should usually be set to the width divided by the height
of whatever you are using the camera to render to (ie. 1920 / 1080 for a HD full screen application,
1 for a 1024x1024 pixel render target and so on).

Syntax

    DX11 SET CAMERA ASPECT RATIO camera, aspect

Parameters

    camera

> Dword
> The camera to set the field of view of.

    aspect

> Float
> The new aspect ratio to set for the camera.

Returns

This function does not return a value.

See also

CAMERA Functions Menu
DX11 Function Categories