获取着色器程序(program)中所有的着色器对象(shader)
void glGetAttachedShaders( GLuint program,
GLsizei maxCount,
GLsizei *count,
GLuint *shaders);
program
Specifies the program object to be queried.
指定着色器程序标识符
maxCount
Specifies the size of the array for storing the returned object names.
指定返回着色器对象的最大数量
count
Returns the number of names actually returned in shaders.
指定实际返回的着色器对象数量
shaders
Specifies an array that is used to return the names of attached shader objects.
指定着色器对象标识符数组

本文详细介绍了如何使用OpenGL函数glGetAttachedShaders来查询着色器程序中的所有着色器对象。包括参数说明:着色器程序标识符、返回着色器对象的最大数量、实际返回的数量及着色器对象标识符数组。
4070

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



