GLGETPROGRAMINFOLOG(3G)
Hey bestie π welcome to the GLGETPROGRAMINFOLOG(3G) page β manual name: [FIXME: manual], iconic. We're talking about glGetProgramInfoLog, and it's literally the function that hands you the info log for a program object. Buckle up π
β¨ NAME β¨
glGetProgramInfoLog β returns the information log for a program object. That's the whole vibe: you ask a program object for its info log, and it gives you the tea β.
π C SPECIFICATION π
void glGetProgramInfoLog(GLuint program, GLsizei maxLength,
GLsizei *length, GLchar *infoLog);
π PARAMETERS π
programβ specifies the program object whose information log is to be queried. This is the main character of the call π.maxLengthβ specifies the size of the character buffer for storing the returned information log. Gotta give it room to spill the tea π«.lengthβ returns the length of the string returned ininfoLog(excluding the null terminator). It's the receipts for how much actually got returned.infoLogβ specifies an array of characters that is used to return the information log. This is where the lore lands β¨.
π¦ DESCRIPTION π¦
glGetProgramInfoLog returns the information log for the specified program object. The information log for a program object is modified when the program object is linked or validated. The string that is returned will be null terminated β no cap.
glGetProgramInfoLog returns in infoLog as much of the information log as it can, up to a maximum of maxLength characters. The number of characters actually returned, excluding the null termination character, is specified by length. If the length of the returned string is not required, a value of NULL can be passed in the length argument. The size of the buffer required to store the returned information log can be obtained by calling glGetProgram() with the value GL_INFO_LOG_LENGTH.
The information log for a program object is either an empty string, or a string containing information about the last link operation, or a string containing information about the last validation operation. It may contain diagnostic messages, warning messages, and other information. When a program object is created, its information log will be a string of length 0. Literally starts empty, bestie π«Ά.
πΈ NOTES πΈ
Real talk: the information log for a program object is the OpenGL implementer's primary mechanism for conveying information about linking and validating. So the info log can be helpful to application developers during the development process, even when these operations are successful β yes, even the slayful successful ones π . Application developers should not expect different OpenGL implementations to produce identical information logs, periodt. Different implementations, different vibes.
π ERRORS π
GL_INVALID_VALUEis generated ifprogramis not a value generated by OpenGL. π©GL_INVALID_OPERATIONis generated ifprogramis not a program object. πGL_INVALID_VALUEis generated ifmaxLengthis less than0. π
π₯ ASSOCIATED GETS π₯
glGetProgram()with argumentGL_INFO_LOG_LENGTHglIsProgram()
π VERSION SUPPORT π
Function / Feature Name: glGetProgramInfoLog
OpenGL Version
2.0β β2.1β β3.0β β3.1β β3.2β β3.3β β4.0β β4.1β β4.2β β4.3β β4.4β β4.5β β
Every single listed OpenGL version has a checkmark, no gaps, we love to see it π.
π SEE ALSO π
glCompileShader()glGetShaderInfoLog()glLinkProgram()glValidateProgram()
π COPYRIGHT π
Copyright Β© 2003-2005 3Dlabs Inc. Ltd. Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT π
Copyright Β© 2003-2005 3Dlabs Inc. Ltd.
Copyright Β© 2010-2014 Khronos Group
And that's the page, bestie π
β the source/version stamp is [FIXME: source], the date is 08/09/2021, and yes, it's still the GLGETPROGRAMINFOLOG(3G) page. Byeee π«Ά
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms