'''
Wrap any OpenGL functions which are fiddly to access via the raw bindings.
'''
from OpenGL import GL
from OpenGL.GL.ARB import vertex_array_object
[docs]def glGenVertexArray():
'''
Return the integer ID of the created vertex object array
'''
vao_id = GL.GLuint(0)
vertex_array_object.glGenVertexArrays(1, vao_id)
return vao_id.value