Light | Dark

glBindVertexArray

Name

glBindVertexArray — bind a vertex array object

C Specification

void glBindVertexArray( GLuint array);

Parameters

array

Specifies the name of the vertex array to bind.

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 bind the default 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.

API Version Support

OpenGL ES API Version
Function Name 2.0 3.0 3.1
glBindVertexArray -
Think you can improve this page? Edit this page on GitHub.