glIsProgram

glIsProgram: man4/glIsProgram.xml

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.

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.

@OpenGL_Version(OGLIntroducedIn.V2P0)
fn_glIsProgram glIsProgram;

See Also

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

Meta