glGetVertexAttribfv Function

Syntax

GL_APICALL void GL_APIENTRY glGetVertexAttribfv(
     GLuint index,
     GLenum pname,
     GLfloat * params
);

Arguments

Name Description
in index Vertex attribute index number
in pname Name of the parameter to get
out params Array storing the obtained values

Return Values

No values are returned.

Description

Gets vertex attribute parameters as GLfloat-type values.

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.

If you set pname to GL_CURRENT_VERTEX_ATTRIB, you can get the current vertex attribute values, set by glVertexAttrib, as four array elements.

You can also set pname to any setting that can be obtained by glGetVertexAttribiv, but you will get values that have all been cast to type GLfloat.

This function generates the following errors.

GL_INVALID_VALUEThe index argument was set to an invalid value.
GL_INVALID_ENUMThe pname argument was set to an invalid value.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL