WebGLVertexArrayObject

这篇翻译不完整。请帮忙从英语翻译这篇文章

WebGLVertexArrayObject接口是WebGL 2 API的一部分,顶点数组对象(VAOs)指向顶点数组数据,并提供不同顶点数据集合的名称。

当使用WebGLVertexArrayObject对象时,这些方法会很有用:

WebGL 1:  OES_vertex_array_object 扩展允许你在WebGL 1 上下文环境中使用顶点数组对象。

例子

var vao = gl.createVertexArray();
gl.bindVertexArray(vao);

// ...
// calls to bindBuffer or vertexAttribPointer 
// which will be "recorded" in the VAO
// ...

说明

Specification Status Comment
WebGL 2.0
WebGLVertexArrayObject
Editor's Draft Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 56Edge No support NoFirefox Full support 51IE No support NoOpera Full support 43Safari No support NoWebView Android Full support 58Chrome Android Full support 58Edge Mobile No support NoFirefox Android Full support 51Opera Android Full support 43Safari iOS No support NoSamsung Internet Android Full support 7.0

Legend

Full support  
Full support
No support  
No support

See also

文档标签和贡献者

标签: 
此页面的贡献者: anngg2008
最后编辑者: anngg2008,