web api interface
WebGLVertexArrayObject
Available in workers
The WebGLVertexArrayObject interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
When working with WebGLVertexArrayObject objects, the following methods are useful:
[!NOTE] The
OES_vertex_array_objectextension allows you to use vertex array objects in a WebGL 1 context.
Examples
const vao = gl.createVertexArray();
gl.bindVertexArray(vao);
// …
// calls to bindBuffer or vertexAttribPointer
// which will be "recorded" in the VAO
// …
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.