glIsShader.3G - Man Page

Determines if a name corresponds to a shader object

C Specification

GLboolean glIsShader(GLuint shader);

Parameters

shader

Specifies a potential shader object.

Description

glIsShader returns GL_TRUE if shader is the name of a shader object previously created with glCreateShader() and not yet deleted with glDeleteShader(). If shader is zero or a non-zero value that is not the name of a shader object, or if an error occurs, glIsShader returns GL_FALSE.

Notes

No error is generated if shader is not a valid shader object name.

A shader object marked for deletion with glDeleteShader() but still attached to a program object is still considered a shader object and glIsShader will return GL_TRUE.

Associated Gets

glGetAttachedShaders() with a valid program object

glGetShader() with arguments shader and a parameter to be queried

glGetShaderInfoLog() with argument object

glGetShaderSource() with argument object

Version Support

OpenGL Version
Function / Feature Name2.02.13.03.13.23.34.04.14.24.34.44.5
glIsShader

See Also

glAttachShader(), glCompileShader(), glCreateShader(), glDeleteShader(), glDetachShader(), glLinkProgram(), glShaderSource()

Info

07/18/2024