glIsProgram.3G - Man Page

Determines if a name corresponds to a program object

C Specification

GLboolean glIsProgram(GLuint program);

Parameters

program

Specifies a potential program object.

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.

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.

Associated Gets

glGet() with the argument GL_CURRENT_PROGRAM

glGetActiveAttrib() 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 program

glGetAttribLocation() with arguments program and the name of an attribute variable

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

glGetProgramInfoLog() with argument program

glGetUniform() with arguments program and the location of a uniform variable

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

Version Support

OpenGL Version
Function / Feature Name2.02.13.03.13.23.34.04.14.24.34.44.5
glIsProgram

See Also

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

Info

07/18/2024