logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glIsShader - Determines if a name corresponds to a shader object

Associated Gets

glGetAttachedShaders() with a valid program object

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

       glGetShaderInfoLog() with argument objectglGetShaderSource() with argument object

C Specification

GLbooleanglIsShader(GLuintshader);

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.

Name

       glIsShader - Determines if a name corresponds to a shader object

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.

Parameters

shader
           Specifies a potential shader object.

See Also

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

Version Support

       ┌────────────┬───────────────────────────────────────────────────────────────────────┐
       │            │                OpenGLVersion                                         │
       ├────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /          │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature    │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name       │     │     │     │     │     │     │     │     │     │     │     │     │
       ├────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glIsShader │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also