DarkBASIC Professional Help File

DX11 SET SPRITE LAYER

Sets the layer that the specified sprite will belong to (this removes the sprite from its previous layer).
Sprite layers can be used to change the draw order of groups of sprites, or hide them, all at once.

Syntax

    DX11 SET SPRITE LAYER sprite, layer

Parameters

    sprite

> Dword
> The sprite to set the layer for.

    layer

> Dword
> The layer to set for the given sprite.

Returns

This function does not return a value.

See also

SPRITE Functions Menu
DX11 Function Categories