DarkBASIC Professional Help File

DX11 GET MAIN CAMERA

Retrieves the main camera created by the engine.
Take note that since direct pointers are used to refer to cameras, as opposed to the indices used by the standard DBPro
engine, you need to obtain and keep track of this camera instead of just providing 0 to any camera functions.
Caveeat: the main camera will always have a camera ID of 0 and thus be represented by the first bit in any masks however.

Syntax

    Return Dword = DX11 GET MAIN CAMERA()

Parameters

    This function does not take any parameters.

Returns

The main camera, used to draw to the screen.

See also

CAMERA Functions Menu
DX11 Function Categories