glVertexAttrib1fv Function

Syntax

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

Parameters

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

Return Values

No values are returned.

Description

Sets vertex attributes using a GLfloat-type array.

Set index to a value that is greater than or equal to 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 value specified by values[0] is given as the x component to the vertex shader's input registers. Values of 0, 0, and 1 are respectively given for y, z, and w.

This function generates the following errors.

GL_INVALID_VALUEThe index argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL