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