glIsTexture function

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

Syntax

GLboolean WINAPI glIsTexture(
   GLuint texture
);

Parameters

texture

A value that is the name of a texture.

Error codes

The following error code can be retrieved by the glGetError function.

Name Meaning
GL_INVALID_OPERATION
The function was called between a call to glBegin and the corresponding call to glEnd.

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.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Gl.h
Library
Opengl32.lib
DLL
Opengl32.dll

See also

glBegin

glBindTexture

glEnd

glGenTextures

glGet

glGetTexParameter

glTexImage1D

glTexImage2D

glTexParameter