DarkBASIC Professional Help File

DX11 CREATE SPRITE LAYER

Creates a new sprite layer with the given priority value.
Priority values determine the order in which layers are drawn; a lower priority means it will be drawn later (ie. on top of higher priority layers).
Multiple sprite layers can have the same priority which can be used if you want the sprites of all such layers to be drawn together based on their
own priority settings only, while still allowing a sub-set of them to be excluded on a per-layer basis.

Syntax

    Return Dword = DX11 CREATE SPRITE LAYER(priority)

Parameters

    priority

> Word
> The priority of the newly created sprite layer. Multiple layers may have the same priority.

Returns

The created sprite layer.

See also

SPRITELAYER Functions Menu
DX11 Function Categories