glUniform1fv Function
GL_APICALL void GL_APIENTRY glUniform1fv(
GLint location,
GLsizei count,
const GLfloat * v
);
| Name | Description | |
|---|---|---|
| in | location | Location of uniform variable |
| in | count | The number of elements in the GL_FLOAT type being configured. |
| in | v | Array storing the values to set |
Sets the value or values of a GL_FLOAT-type uniform variable or a GL_FLOAT-type uniform variable array, in the vertex shader, geometry shader, or reserved fragment shader.
Set location to the uniform variable's location. Set count to the number of elements to configure in a uniform variable array.
Set v to an array storing the value(s) to set in the uniform variable or uniform variable array.
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 variable array is smaller than the sum of count, the offset, and the location obtained from glGetUniformLocation. |
CONFIDENTIAL