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.
Return value
A WebGL_API/Types 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
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
