DarkBASIC Professional Help File

DX11 SET LABEL CAMERA MASK

This function can be used to set a label to only be drawn by certain cameras.
The mask is a 32-bit value; each bit represents a camera id that the label will be drawn by. This works in tandem with the sync mask settings for sprites,
and in order to draw labels, the rendering camera must be set to enable sprite drawing (using the DX11 SET CAMERA ENABLE SPRITES function).
Use DX11 GET CAMERA ID to get the ID of a certain camera (the main screen camera always has an ID of 0, so setting the mask to 1
will only draw the sprite to the main camera (because 2 ^ 0 == 1)). .

Syntax

    DX11 SET LABEL CAMERA MASK label, mask

Parameters

    label

> Dword
> The label to set the camera mask of.

    mask

> Dword
> The camera mask to set for the specified label.

Returns

This function does not return a value.

See also

LABEL Functions Menu
DX11 Function Categories