logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glGetVertexArrayiv - retrieve parameters of a vertex array object

C Specification

voidglGetVertexArrayiv(GLuintvaobj,GLenumpname,GLint*param);

Description

       This function provides a mean of querying properties of an existing vertex array object. The vertex array
       object does not have to be bound to the rendering context at the time of the call, but must have been
       bound at least once prior to this call.

       glGetVertexArrayiv can be used to retrieve ID of a buffer object that will be bound to the
       GL_ELEMENT_ARRAY_BUFFER binding point whenever the queried vertex array object is bound to the rendering
       context. The binding can be changed for an active vertex array object with a glBindBuffer call.

Errors

GL_INVALID_OPERATION error is generated if vaobj is not the name of an existing vertex array object.

       GL_INVALID_ENUM error is generated if pname is not GL_ELEMENT_ARRAY_BUFFER_BINDING.

Name

       glGetVertexArrayiv - retrieve parameters of a vertex array object

Parameters

vaobj
           specifies the name of the vertex array object to use for the query.

       pname
           Name of the property to use for the query. Must be GL_ELEMENT_ARRAY_BUFFER_BINDING.

       param
           Returns the requested value.

See Also

glBindBuffer(), glBindVertexArray(), glGet()

Version Support

       ┌────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                    │                OpenGLVersion                                         │
       ├────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                  │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature            │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name               │     │     │     │     │     │     │     │     │     │     │     │     │
       ├────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glGetVertexArrayiv │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │
       └────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also