Firefox Tomorrow

web api instance method

WebGL2RenderingContext: bindVertexArray() method

View on MDN ↗

Available in workers

The WebGL2RenderingContext.bindVertexArray() method of the WebGL 2 API binds a passed WebGLVertexArrayObject object to the buffer.

Syntax

bindVertexArray(vertexArray)

Parameters

Return value

None (undefined).

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.

See also