VAOs
are useful, particularly for non-trivial applications that use multiple
VBOs. VAOs are a “wrapper” around a VBO,
managing state information. This makes
VBOs easier and more efficient to use.
The
following functions are used with VAOs:
- void glGenVertexArrays(GLsize n, GLuint *arrays): creates n VAOs.
- void glBindVertexArray(GLuint array): binds a VAO.
- void glDeleteVertexArray(GLuint array): deletes a VAO.
Tip: Always use
a VAO in conjunction with your VBO