DarkBASIC Professional Help File

DX11 GET CAMERA ASPECT RATIO

Retrieves the aspect ratio of the specified camera.
This is only used by perspective projection cameras and is usually set to the width divided by the height of its associated render target.

Syntax

    Return Float = DX11 GET CAMERA ASPECT RATIO(camera)

Parameters

    camera

> Dword
> The camera to get the aspect ratio of.

Returns

The aspect ratio of the given camera. If called for an orthographic camera the returned value is without meaning.

See also

CAMERA Functions Menu
DX11 Function Categories