DarkBASIC Professional Help File

DX11 GET CAMERA BY ID

Allows you to retrieve a camera by its mask id.
Calling this with an argument of 0 is equivalent to calling DX11 GET MAIN CAMERA.

Syntax

    Return Dword = DX11 GET CAMERA BY ID(id)

Parameters

    id

> Dword
> The id of the camera to retrieve. The valid range is [0..31], where 0 corresponds to the main screen camera.

Returns

The camera with the given id, or 0 if no such camera exists.

See also

CAMERA Functions Menu
DX11 Function Categories