glIsTexture

determine if a name corresponds to a texture

Signature

glIsTexture( GLuint ( texture ) )-> GLboolean
glIsTexture( texture ) -> <class 'ctypes.c_ubyte'>

Parameters

VariablesDescription
texture
Specifies a value that may be the name of a texture.

Description

glIsTexture returns GL_TRUE if texture is currently the name of a texture. If texture is zero, or is a non-zero value that is not currently the name of a texture, or if an error occurs, glIsTexture returns GL_FALSE .
A name returned by glGenTextures , but not yet associated with a texture by calling glBindTexture , is not the name of a texture.

Version Support

glIsTexture

See Also

Copyright

Copyright
1991-2006 Silicon Graphics, Inc. Copyright
2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see .

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glIsTexture
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 850
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 828
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Display3D.py Lines: 463
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py Lines: 517
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Display3D.py Lines: 463
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Display3D.py Lines: 517
Visvis core/line.py Lines: 174
Visvis core/baseTexture.py Lines: 202, 219, 336