glGetProgramiv
glGetProgramiv is a function in the OpenGL API used to query integer-valued parameters of a program object. A program object is a collection of shader objects that have been successfully compiled and linked. This function allows developers to retrieve information about the linked program, such as its active uniform variables, active attributes, or whether it has been successfully linked.
The function takes two arguments: the program object name and a parameter token. The parameter token specifies