Export (0) Print
Expand All
Expand Minimize

glIsTexture function

Applies to: desktop apps only

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.

NameMeaning
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

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Gl.h

Library

Opengl32.lib

DLL

Opengl32.dll

See also

glBegin
glBindTexture
glEnd
glGenTextures
glGet
glGetTexParameter
glTexImage1D
glTexImage2D
glTexParameter

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft