glUniformMatrix3fv Function
GL_APICALL void GL_APIENTRY glUniformMatrix3fv(
GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat * value
);
| Name | Description | |
|---|---|---|
| in | location | Location of uniform variable |
| in | count | The number of elements in the GL_FLOAT_VEC3 array-type uniform being configured. |
| in | transpose | Whether to load the transpose |
| in | value | Array storing the values to set |
Sets the value of GL_FLOAT_VEC3-type uniform variable arrays in the vertex shader or geometry shader.
This function changes the values of a (count × 3) number of arrays. Set transpose to GL_TRUE when taking the transpose. For value, specify an array of values to set in the uniform. Specify value using an array of (count × 9) GLfloat values.
Calls to this function are ignored when location is -1.
This function generates the following errors.
| GL_INVALID_VALUE | The count argument is negative. |
|---|---|
| GL_INVALID_OPERATION | The location argument is not a location in the current program. |
| GL_INVALID_OPERATION | There is no current program object. |
| GL_INVALID_OPERATION | This function was called on a location with a different data type or component count. |
| GL_INVALID_OPERATION | The uniform array count is less than three times the sum of count and the offset added to the location obtained from glGetUniformLocation. |
CONFIDENTIAL