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

glBindVertexArray - bind a vertex array object

C Specification

voidglBindVertexArray(GLuintarray);

Description

glBindVertexArray binds the vertex array object with name array.  array is the name of a vertex array
       object previously returned from a call to glGenVertexArrays(), or zero to break the existing vertex array
       object binding.

       If no vertex array object with name array exists, one is created when array is first bound. If the bind
       is successful no change is made to the state of the vertex array object, and any previous vertex array
       object binding is broken.

Errors

GL_INVALID_OPERATION is generated if array is not zero or the name of a vertex array object previously
       returned from a call to glGenVertexArrays().

Name

       glBindVertexArray - bind a vertex array object

Parameters

array
           Specifies the name of the vertex array to bind.

See Also

glDeleteVertexArrays(), glEnableVertexAttribArray(), glGenVertexArrays(), glIsVertexArray(),
       glVertexAttribPointer()

Version Support

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

See Also