GLGETINFOLOG(3gl)GLGETINFOLOG(3gl)NAME
glGetInfoLogARB - Returns the information log for an object.
C SPECIFICATION
void glGetInfoLogARB( GLhandleARB object,
GLsizei maxLength,
GLsizei *length,
GLcharARB *infoLog)
PARAMETERS
object Specifies the handle of object whose information log
is
to
be
queried.
maxLength Specifies the size of the character buffer for storing the
returned
infor‐
ma‐
tion
log.
length Returns the length of the character string written into infoLog.
infoLog Points to a string containing the information log.
DESCRIPTION
glGetInfoLogARB returns the information log for the specified object.
The information log for an object is modified when an object is com‐
piled, linked or validated. The information log returned in infoLog is
null terminated. The length of the returned information log (excluding
the null terminator) is returned in length and will not exceed
maxLength. The size of a buffer required to hold the current informa‐
tion log can be queried by calling glGetObjectParameterARB with the
value GL_OBJECT_INFO_LOG_LENGTH_ARB.
NOTES
Different OpenGL implementations are not required to return identical
information logs.
ERRORS
GL_INVALID_VALUE is generated if object is not a valid object handle.
GL_INVALID_VALUE is generated if maxLength is less than 0.
GL_INVALID_OPERATION is generated if object is not of type GL_PRO‐
GRAM_OBJECT_ARB or GL_SHADER_OBJECT_ARB.
GL_INVALID_OPERATION is generated if glGetInfoLogARB is executed
between the execution of glBegin and the corresponding execution of
glEnd.
ASSOCIATED GETS
glGetObjectParameterARB with argument GL_OBJECT_INFO_LOG_LENGTH_ARB
SEE ALSO
glCompileShaderARB, glLinkProgramARB, glValidateProgramARB
11 Mar 04 GLGETINFOLOG(3gl)