texture_delete(texid)

From ENIGMA

Jump to: navigation, search

Description

Deletes the given texture, freeing it from memory. This function should be used with caution, do not use it to delete backgrounds or sprites delete them directly which by default optionally frees the texture as well.

Parameters

Parameter Data Type Description
texid integer index of the texture

Return Values

int: This function does not return anything.

Example Call

// demonstrates freeing a texture from memory
texture_delete(mytexture);
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox