GL_APICALL void GL_APIENTRY glGetProgramiv(
GLuint program,
GLenum pname,
GLint * params
);
| Name | Description | |
|---|---|---|
| in | program | Program object |
| in | pname | Name of the parameter to get |
| out | params | Region storing the obtained parameters |
Gets program object parameters.
Set program to the program object.
Set pname to one of the following values.
| GL_DELETE_STATUS | Gets GL_TRUE if the program object is waiting to be deleted and GL_FALSE otherwise. A program object in use by glUseProgram begins "waiting to be deleted" when glDeleteProgram is called on it. |
|---|---|
| GL_LINK_STATUS | Gets GL_TRUE if the program object has been successfully linked by glLinkProgram and GL_FALSE otherwise. |
| GL_INFO_LOG_LENGTH | Always gets a value of 0. |
| GL_ATTACHED_SHADERS | Gets the number of shader objects attached to the program. |
| GL_ACTIVE_ATTRIBUTES | Gets the number of active vertex attributes in the program. |
| GL_ACTIVE_ATTRIBUTE_MAX_LENGTH | Gets the number of characters in the name of the longest-named active vertex attribute in the program. A NULL terminator is also included in the character count. |
| GL_ACTIVE_UNIFORMS | Gets the number of active uniforms in the program. |
| GL_ACTIVE_UNIFORM_MAX_LENGTH | Gets the number of characters in the name of the longest-named active uniform in the program. A NULL terminator is also included in the character count. |
This function generates the following errors.
| GL_INVALID_ENUM | The pname argument was set to an invalid value. |
|---|---|
| GL_INVALID_VALUE | The program argument was set to an invalid value. |
CONFIDENTIAL