DarkBASIC Professional Help File

DX11 SET CAMERA ENABLE SPRITES

Sets whether the specified camera will draw any sprites.
By default sprites will only be drawn to the main (screen) camera, but by using this function you can draw sprites to other cameras (and thus render targets) as well.
You can further control what sprites will be drawn to what camera by using the DX11 SET SPRITE CAMERA MASK function.
Take note that labels are internally implemented using sprites, which means that this must also be enabled to draw labels to a certain camera.

Syntax

    DX11 SET CAMERA ENABLE SPRITES camera, enable

Parameters

    camera

> Dword
> The camera to set whether it should draw sprites or not.

    enable

> Boolean
> Set to true to enable sprite drawing for the specified camera, or false to disable it.

Returns

This function does not return a value.

See also

CAMERA Functions Menu
DX11 Function Categories