vertex-array-objects

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL