glUniform3i Function

Syntax

GL_APICALL void GL_APIENTRY glUniform3i(
     GLint location,
     GLint x,
     GLint y,
     GLint z
);

Parameters

Name Description
in location Location of uniform variable
in x Value to set for the first component
in y Value to set for the second component
in z Value to set for the third component

Return Values

No values are returned.

Description

Sets the value of a uniform variable with a data type of GL_INT_VEC3 or GL_BOOL_VEC3 in the vertex shader, geometry shader, or reserved fragment shader.

This function also sets the value of the first element in uniform variable arrays of the aforementioned types. Set location to the uniform variable's location. Use x, y, and z to specify the values to set.

Calls to this function are ignored when location is -1.

This function generates the following errors.

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 offset added to the location obtained from glGetUniformLocation.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL