glGetVertexAttribfv Function
GL_APICALL void GL_APIENTRY glGetVertexAttribfv(
GLuint index,
GLenum pname,
GLfloat * params
);
| Name | Description | |
|---|---|---|
| in | index | Vertex attribute index number |
| in | pname | Name of the parameter to get |
| out | params | Array storing the obtained values |
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_VALUE | The index argument was set to an invalid value. |
|---|---|
| GL_INVALID_ENUM | The pname argument was set to an invalid value. |
CONFIDENTIAL