webgl extension method
OES_vertex_array_object: isVertexArrayOES() method
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.
- : A
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
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:
isVertexArray()