Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

glIsProgram - Determines if a name corresponds to a program object

Associated Gets

glGet() with the argument GL_CURRENT_PROGRAMglGetActiveAttrib() with arguments program and the index of an active attribute variable

       glGetActiveUniform() with arguments program and the index of an active uniform variable

       glGetAttachedShaders() with argument programglGetAttribLocation() with arguments program and the name of an attribute variable

       glGetProgram() with arguments program and the parameter to be queried

       glGetProgramInfoLog() with argument programglGetUniform() with arguments program and the location of a uniform variable

       glGetUniformLocation() with arguments program and the name of a uniform variable

C Specification

GLbooleanglIsProgram(GLuintprogram);

Description

glIsProgram returns GL_TRUE if program is the name of a program object previously created with
       glCreateProgram() and not yet deleted with glDeleteProgram(). If program is zero or a non-zero value that
       is not the name of a program object, or if an error occurs, glIsProgram returns GL_FALSE.

Name

       glIsProgram - Determines if a name corresponds to a program object

Notes

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

       A program object marked for deletion with glDeleteProgram() but still in use as part of current rendering
       state is still considered a program object and glIsProgram will return GL_TRUE.

Parameters

program
           Specifies a potential program object.

See Also

glAttachShader(), glBindAttribLocation(), glCreateProgram(), glDeleteProgram(), glDetachShader(),
       glLinkProgram(), glUniform(), glUseProgram(), glValidateProgram()

Version Support

       ┌─────────────┬───────────────────────────────────────────────────────────────────────┐
       │             │                OpenGLVersion                                         │
       ├─────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function    │ 2.0 │ 2.1 │ 3.0 │ 3.1 │ 3.2 │ 3.3 │ 4.0 │ 4.1 │ 4.2 │ 4.3 │ 4.4 │ 4.5 │
       │ /           │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature     │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name        │     │     │     │     │     │     │     │     │     │     │     │     │
       ├─────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glIsProgram │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └─────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also