glBindVertexArray

bind a vertex array object

Signature

glBindVertexArray( GLuint ( array ) )-> void
glBindVertexArray( array )

Parameters

VariablesDescription
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 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 .

Version Support

glBindVertexArray

See Also

Copyright

Copyright
2010-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. .

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glBindVertexArray
Gloopy gloopy/view/glyph.py Lines: 76, 98
Gloopy gloopy/view/render.py Lines: 138, 149
Gloopy gloopy/view/gl_wrap.py Lines: 12, 12, 24
OpenGL Tutorial (Python Translation) t02.playing-with-colors/FragPosition.py Lines: 7, 77
OpenGL Tutorial (Python Translation) t02.playing-with-colors/VertexColors.py Lines: 7, 80
OpenGL Tutorial (Python Translation) t01.hello-triangle/HelloTriangle.py Lines: 6, 91
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 199