glUniform2iv Function
GL_APICALL void GL_APIENTRY glUniform2iv(
GLint location,
GLsizei count,
const GLint * v
);
| Name | Description | |
|---|---|---|
| in | location | Location of uniform variable |
| in | count | The number of elements in the GL_INT_VEC2 type or GL_BOOL_VEC2 type being configured. |
| in | v | Array storing the values to set |
Sets the value or values of a uniform variable or uniform variable array with a data type of GL_INT_VEC2 or GL_BOOL_VEC2 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