| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/WebGLVertexArrayObject | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since September 2021.
Note: This feature is available in Web Workers.
The WebGLVertexArrayObject interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
When working with WebGLVertexArrayObject objects, the following methods are useful:
WebGL2RenderingContext.createVertexArray()WebGL2RenderingContext.deleteVertexArray()WebGL2RenderingContext.isVertexArray()WebGL2RenderingContext.bindVertexArray()Note:
The OES_vertex_array_object extension allows you to use vertex array objects in a WebGL 1 context.
const vao = gl.createVertexArray();
gl.bindVertexArray(vao);
//
// calls to bindBuffer or vertexAttribPointer
// which will be "recorded" in the VAO
//
| Specification |
|---|
| WebGL 2.0 Specification # 4.6 |
This page was last modified on Sep 28, 2024 by MDN contributors.
WebGLVertexArrayObjectANGLE_instanced_arraysEXT_blend_minmaxEXT_color_buffer_half_floatEXT_disjoint_timer_queryEXT_frag_depthEXT_sRGBEXT_shader_texture_lodEXT_texture_filter_anisotropicOES_draw_buffers_indexedOES_element_index_uintOES_standard_derivativesOES_texture_floatOES_texture_float_linearOES_texture_half_floatOES_texture_half_float_linearOES_vertex_array_objectWEBGL_color_buffer_floatWEBGL_compressed_texture_etc1WEBGL_compressed_texture_pvrtcWEBGL_compressed_texture_s3tcWEBGL_compressed_texture_s3tc_srgbWEBGL_debug_renderer_infoWEBGL_debug_shadersWEBGL_depth_textureWEBGL_draw_buffersWEBGL_lose_contextWebGL2RenderingContextWebGLActiveInfoWebGLBufferWebGLContextEventWebGLFramebufferWebGLObjectWebGLProgramWebGLQueryWebGLRenderbufferWebGLRenderingContextWebGLSamplerWebGLShaderWebGLShaderPrecisionFormatWebGLSyncWebGLTextureWebGLTransformFeedbackWebGLUniformLocationYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |