DarkBASIC Professional Help File

DX11 GET SPRITE IMAGE

Retrieves the image used by the given sprite at the specified stage.
Take note that this function can return a nullptr if there is no image for the given stage of the sprite.

Syntax

    Return Dword = DX11 GET SPRITE IMAGE(sprite, [stage])

Parameters

    sprite

> Dword
> The sprite to get the image of.

    [Optional] stage

> Dword
> The image stage of the specified sprite to get the image of. Defaults to 0. Take note that unless explicitly set, all stages beside 0 will return a nullptr.

Returns

The image used by the given sprite on the specified stage, or nullptr (0) if there is no such image. .

See also

SPRITE Functions Menu
DX11 Function Categories