JavaScript EditorFree JavaScript Editor     Ajax Editor 



Main Page
Previous Page
Next Page

glIsShader

Name

glIsShader Determines whether 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. If shader is zero or a non-zero value that is not the name of a shader object, glIsShader returns GL_FALSE.

Notes

glIsShader is available only if the GL version is 2.0 or greater.

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

Errors

GL_INVALID_OPERATION is generated if glIsShader is executed between the execution of glBegin and the corresponding execution of glEnd.

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

See Also

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


Previous Page
Next Page




JavaScript EditorAjax Editor     JavaScript Editor