table of contents
other versions
GLGETVERTEXATTRIB(3G) | [FIXME: manual] | GLGETVERTEXATTRIB(3G) |
NAME¶
glGetVertexAttribdv, glGetVertexAttribfv, glGetVertexAttribiv, glGetVertexAttribIiv, glGetVertexAttribIuiv, glGetVertexAttribLdv - Return a generic vertex attribute parameterC SPECIFICATION¶
void
glGetVertexAttribdv(GLuint index,
GLenum pname,
GLdouble *params);
void
glGetVertexAttribfv(GLuint index,
GLenum pname,
GLfloat *params);
void
glGetVertexAttribiv(GLuint index,
GLenum pname, GLint *params);
void
glGetVertexAttribIiv(GLuint index,
GLenum pname, GLint *params);
void
glGetVertexAttribIuiv(GLuint index,
GLenum pname, GLuint *params);
void
glGetVertexAttribLdv(GLuint index,
GLenum pname,
GLdouble *params);
PARAMETERS¶
indexSpecifies the generic vertex attribute
parameter to be queried.
pname
Specifies the symbolic name of the vertex
attribute parameter to be queried. Accepted values are
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,
GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE,
GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE,
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED,
GL_VERTEX_ATTRIB_ARRAY_INTEGER, GL_VERTEX_ATTRIB_ARRAY_DIVISOR,
or GL_CURRENT_VERTEX_ATTRIB.
params
Returns the requested data.
DESCRIPTION¶
glGetVertexAttrib returns in params the value of a generic vertex attribute parameter. The generic vertex attribute to be queried is specified by index, and the parameter to be queried is specified by pname. The accepted parameter names are as follows: GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDINGNOTES¶
If an error is generated, no change is made to the contents of params.ERRORS¶
GL_INVALID_OPERATION is generated if pname is not GL_CURRENT_VERTEX_ATTRIB and there is no currently bound vertex array object. GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX_ATTRIBS. GL_INVALID_ENUM is generated if pname is not an accepted value. GL_INVALID_OPERATION is generated if index is 0 and pname is GL_CURRENT_VERTEX_ATTRIB.ASSOCIATED GETS¶
glGet() with argument GL_MAX_VERTEX_ATTRIBS glGetVertexAttribPointerv() with arguments index and GL_VERTEX_ATTRIB_ARRAY_POINTERSEE ALSO¶
glBindAttribLocation(), glBindBuffer(), glDisableVertexAttribArray(), glEnableVertexAttribArray(), glVertexAttrib(), glVertexAttribDivisor(), glVertexAttribPointer()COPYRIGHT¶
Copyright © 2003-2005 3Dlabs Inc. Ltd. Copyright © 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.05/30/2012 | [FIXME: source] |