glVertexArrayElementBuffer

From OpenGL Reference
Jump to navigation Jump to search

Configures element array buffer binding of a vertex array object.

C Specification[edit]

void glVertexArrayElementBuffer( GLuint vaobj, GLuint buffer );


Parameters[edit]

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.


Description[edit]

 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.


Associated Gets[edit]

 glGet with argument GL_ELEMENT_ARRAY_BUFFER_BINDING .

 glGetVertexArrayiv with argument GL_ELEMENT_ARRAY_BUFFER_BINDING .


Errors[edit]

 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.


Version Support[edit]

 glVertexArrayElementBuffer  4.5+

See Also[edit]

 glGet , glGetVertexArrayiv 


Copyright[edit]

Copyright© 2014 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/.