glVertexAttrib4fv Function

Syntax

GL_APICALL void GL_APIENTRY glVertexAttrib4fv(
     GLuint indx,
     const GLfloat * values
);

Arguments

Name Description
in indx Vertex attribute index
in values Array storing vertex attribute values

Return Values

No values are returned.

Description

Sets vertex attributes using a GLfloat-type array.

You can set index to a value that is greater than 0 and at least one less than the value that can be obtained by glGetIntegerv with GL_MAX_VERTEX_ATTRIBS specified. Call this function when using the same vertex attribute values for all vertices. The values set by this function are used when a vertex attribute array has been disabled by glDisableVertexAttribArray.

The values specified by values[0], values[1], values[2], and values[3] are given as the x, y, z, and w components, respectively, to the vertex shader's input registers.

The following errors occur in this function.

GL_INVALID_VALUE index was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL