WebGL2RenderingContext: isVertexArray() method
WebGL
WebGL
The WebGL2RenderingContext.isVertexArray() method of the
WebGL API returns true if the
passed object is a valid WebGLVertexArrayObject object.
Syntax
isVertexArray(vertexArray)
Parameters
vertexArray- : A WebGLVertexArrayObject (VAO) object to test. Passing
nullreturnsfalse.
Return value
A GLboolean indicating whether the given object is a valid
WebGLVertexArrayObject object (true) or not
(false).
Examples
const vao = gl.createVertexArray();
gl.bindVertexArray(vao);
// …
gl.isVertexArray(vao);
Specifications
Browser compatibility
See also
- WebGLVertexArrayObject