获取着色器程序(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.
指定着色器对象标识符数组