glIsTexture

The glIsTexture function determines if a name corresponds to a texture.

GLboolean glIsTexture(
  GLuint texture);

Parameters

  • texture
    A value that is the name of a texture.

Remarks

If the texture parameter is currently the name of a texture, the glIsTexture function returns GL_TRUE. The glIsTexture function returns GL_FALSE if texture is zero. It also returns GL_FALSE if it is a non-zero value that is not currently the name of a texture, or if an error occurs.

You cannot include calls to glIsTexture in display lists.

Note  The glIsTexture function is only available in OpenGL version 1.1 or later.

Error Codes

The following is the error code generated and its condition.

Error code Condition
GL_INVALID_OPERATION glIsTexture was called between a call to glBegin and the corresponding call to glEnd.

Requirements

**  Windows NT/2000:** Requires Windows NT 4.0 or later.
**  Windows 95/98:** Requires Windows 95 or later. Available as a redistributable for Windows 95.
**  Header:** Declared in Gl.h.
**  Library:** Use Opengl32.lib.

See Also

glBegin, glBindTexture, glEnd, glGenTextures, glGet, glGetTexParameter, glTexImage1D, glTexImage2D, glTexParameter