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

glVertexArrayElementBuffer - configures element array buffer binding of a vertex array object

Associated Gets

glGet() with argument GL_ELEMENT_ARRAY_BUFFER_BINDING.

       glGetVertexArrayiv() with argument GL_ELEMENT_ARRAY_BUFFER_BINDING.

C Specification

voidglVertexArrayElementBuffer(GLuintvaobj,GLuintbuffer);

Description

glVertexArrayElementBuffer binds a buffer object with id buffer to the element array buffer bind point of
       a vertex array object with id vaobj. If buffer is zero, any existing element array buffer binding to
       vaobj is removed.

Errors

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

       GL_INVALID_OPERATION error is generated if buffer is not zero or the name of an existing buffer object.

Name

       glVertexArrayElementBuffer - configures element array buffer binding of a vertex array object

Parameters

vaobj
           Specifies the name of the vertex array object.

       buffer
           Specifies the name of the buffer object to use for the element array buffer binding.

See Also

glGet(), glGetVertexArrayiv()

Version Support

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

See Also