glGetProgramInfoLog

Returns the information log for a program object

Signature

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

    returns string which is '' if no message
    

Parameters

VariablesDescription
program
Specifies the program 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.

glGetProgramInfoLog
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 484, 492, 543
{LGPL} PyMT pymt/graphx/shader.py Lines: 13, 91
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 100
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 123
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 131
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 109
{GPL3} OpenGL-Programmable 05-shader.py Lines: 92
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 109