glIsTexture

[New - Windows 95, OEM Service Release 2]

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. If texture is zero, is a non-zero value that is not currently the name of a texture, or if an error occurs, glIsTexture returns GL_FALSE.

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.

 

See Also

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