glUniform3fv Function

Syntax

GL_APICALL void GL_APIENTRY glUniform3fv(
     GLint location,
     GLsizei count,
     const GLfloat * v
);

Arguments

Name Description
in location Location of uniform variable
in count The number of elements in the GL_FLOAT_VEC3 type being configured.
in v Array storing the values to set

Return Values

No values are returned.

Description

Sets the value or values of a uniform variable or uniform variable array with a data type of GL_FLOAT_VEC3 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_VALUEThe count argument is negative.
GL_INVALID_OPERATIONThe location argument is not a location in the current program.
GL_INVALID_OPERATIONThere is no current program object.
GL_INVALID_OPERATIONThis function was called on a location with a different data type or component count.
GL_INVALID_OPERATIONThe uniform variable array is smaller than the sum of count, the offset, and the location obtained from glGetUniformLocation.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL