Firefox Tomorrow

webgl extension method

OES_vertex_array_object: bindVertexArrayOES() method

View on MDN ↗

The OES_vertex_array_object.bindVertexArrayOES() method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.

Syntax

bindVertexArrayOES(arrayObject)

Parameters

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