IsTexture()

Syntax

Result = IsTexture(#Texture)
Description
Tests if the given #Texture is a valid and correctly initialized texture.

This function is bullet-proof and can be used with any value. If the 'Result' is not zero then the object is valid and initialized, else it returns zero. This is the correct way to ensure that a texture is ready to use.

Supported OS

All

<- FreeTexture() - Texture Index - LoadTexture() ->