glGetShader

Returns a parameter from a shader object

Signature

glGetShaderiv( GLuint ( shader ) , GLenum ( pname ) , GLint *( params ) )-> void
glGetShaderiv( shader , pname , params )
Retrieve the integer parameter for the given shader

    shader -- shader ID to query
    pname -- parameter name
    status -- pointer to integer to receive status or None to
        return the parameter as an integer value

    returns
        integer if status parameter is None
        status if status parameter is not None
    

Parameters

VariablesDescription
shader
Specifies the shader object to be queried.
pname
Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE , GL_DELETE_STATUS , GL_COMPILE_STATUS , GL_INFO_LOG_LENGTH , GL_SHADER_SOURCE_LENGTH .
params
Returns the requested object parameter.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glGetShaderiv
Visvis core/shaders.py Lines: 534
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 38
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 39
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 38
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 38
{GPL3} OpenGL-Programmable 05-shader.py Lines: 38
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 38