Skip to content

Texture_exists

hugh greene edited this page Jun 20, 2022 · 1 revision

Description

Adds a texture from the given file and optionally generates mipmaps.

Parameters

Parameter Data Type Description
texid

Return Values

boolean: Returns whether or not the texture exists.

Example Call

// demonstrates checking whether a texture exists or not
if (texture_exists(mytexture)) {
  // texture exists
} else {
  // texture does not exist
}

NOTOC

Clone this wiki locally