webgl extension method
OES_vertex_array_object: bindVertexArrayOES() method
The OES_vertex_array_object.bindVertexArrayOES() method
of the WebGL API binds a
passed WebGLVertexArrayObject object to the buffer.
Syntax
bindVertexArrayOES(arrayObject)
Parameters
arrayObject- : A
WebGLVertexArrayObject(VAO) object to bind.
- : A
Return value
None (undefined).
Examples
const ext = gl.getExtension("OES_vertex_array_object");
const vao = ext.createVertexArrayOES();
ext.bindVertexArrayOES(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.
See also
getExtension()vertexAttribPointer()- WebGL2 equivalent:
bindVertexArray()