Documentation
¶
Overview ¶
Vertex Array Object (VAO) example using OpenGL ES 3.0.
Demonstrates the ES3-only VAO feature that encapsulates vertex attribute state into named objects. In ES2 every draw call must re-bind vertex pointers; with VAOs the driver records the bindings once and replays them on BindVertexArray.
This example creates two VAOs -- one for a triangle and one for a quad -- each backed by its own VBO. Switching between them before drawing shows how VAOs eliminate redundant EnableVertexAttribArray/VertexAttribPointer calls at render time.
This program must run on an Android device with OpenGL ES 3.0 support.
Click to show internal directories.
Click to hide internal directories.