DarkBASIC Professional Help File

DX11 GET CAMERA ID

Retrieves the camera's mask id.
This id is used to mark whether the camera should be used / drawn to in sync and object masks.
The id cannot be manually set; if a camera is deleted and another one created, the new camera will get the id of the deleted one.
When automatically rendered from the DX11 SYNC function, the camera's will be rendered in reverse order so that the one with the
highest ID gets rendered first and the lowest id (which is always the main camera) last.
You can however set the automatic sync mask to 0 and draw the cameras in whatever order you see fit, with multiple passes if desired, using
the RENDER CAMERA function.

Syntax

    Return Dword = DX11 GET CAMERA ID(camera)

Parameters

    camera

> Dword
> The camera to get the mask id of.

Returns

The mask id of this camera. The id of the main camera is always 0.

See also

CAMERA Functions Menu
DX11 Function Categories