MDN self-hosted library · e01.org

OES_vertex_array_object: isVertexArrayOES() method

WebGL

WebGL

The OES_vertex_array_object.isVertexArrayOES() method of the WebGL API returns true if the passed object is a WebGLVertexArrayObject object.

Syntax

isVertexArrayOES(arrayObject)

Parameters

  • arrayObject
  • : A WebGLVertexArrayObject (VAO) object to test.

Return value

A GLboolean indicating whether the given object is a WebGLVertexArrayObject object (true) or not (false).

Examples

const ext = gl.getExtension("OES_vertex_array_object");
const vao = ext.createVertexArrayOES();
ext.bindVertexArrayOES(vao);

// …

ext.isVertexArrayOES(vao);

Specifications

Browser compatibility

See also

  • WebGLRenderingContext.getExtension()
  • WebGLRenderingContext.vertexAttribPointer()
  • WebGL2 equivalent: WebGL2RenderingContext.isVertexArray()