返回着色器程序的日志信息。
void glGetProgramInfoLog( GLuint program,
GLsizei maxLength,
GLsizei *length,
GLchar *infoLog);
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.
指定日志信息的长度,由glGetProgramiv来获取
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.
获取日志信息。
osg/GLExtensions.cpp
bool GLExtensions::getProgramInfoLog( GLuint program, std::string& result ) const
{
GLsizei bufLen = 0; // le

本文介绍OpenGL的glGetProgramInfoLog函数,用于获取着色器程序的对象日志信息。通过指定程序对象ID,设置最大长度,获取并返回日志长度及详细信息。
最低0.47元/天 解锁文章
319

被折叠的 条评论
为什么被折叠?



