glGetShaderInfoLog

Returns the information log for a shader object

Signature

glGetShaderInfoLog( GLuint ( shader ) , GLsizei ( maxLength ) , GLsizei *( length ) , GLchar *( infoLog ) )-> void
glGetShaderInfoLog( shader , bufSize , length , infoLog )
Retrieve the shader's error messages as a Python string

    returns string which is '' if no message
    

Parameters

VariablesDescription
shader
Specifies the shader object whose information log is to be queried.
maxLength
Specifies the size of the character buffer for storing the returned information log.
length
Returns the length of the string returned in infoLog (excluding the null terminator).
infoLog
Specifies an array of characters that is used to return the information log.

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.

glGetShaderInfoLog
{LGPL} PyMT pymt/graphx/shader.py Lines: 13, 87
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 39
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 40
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 39
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 39
{GPL3} OpenGL-Programmable 05-shader.py Lines: 39
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 39