获取指定位置uniform变量的值,这个位置可以由glGetUniformLocation获得。
void glGetUniformfv( GLuint program,
GLint location,
GLfloat *params);
void glGetUniformiv( GLuint program,
GLint location,
GLint *params);
void glGetUniformuiv( GLuint program,
GLint location,
GLuint *params);
void glGetUniformdv( GLuint program,
GLint location,
GLdouble *params);
program
Specifies the program object to be queried.
指定着色器程序,比如顶点、片段着色器等。
location
Specifies the location of the uniform variable to be queried.
指定uniform变量的位置
params
Returns the value of the specified uniform variable.
返回uniform变量的值