MDN self-hosted library · e01.org

WebGL2RenderingContext: deleteVertexArray() method

WebGL

WebGL

The WebGL2RenderingContext.deleteVertexArray() method of the WebGL 2 API deletes a given WebGLVertexArrayObject object.

Syntax

deleteVertexArray(vertexArray)

Parameters

  • vertexArray
  • : A WebGLVertexArrayObject (VAO) object to delete. Passing null does nothing.

Return value

None (undefined).

Examples

const vao = gl.createVertexArray();
gl.bindVertexArray(vao);

// …

gl.deleteVertexArray(vao);

Specifications

Browser compatibility

See also

  • WebGLVertexArrayObject