Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. OES_vertex_array_object

OES_vertex_array_object extension

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨April 2018⁩.

TheOES_vertex_array_object extension is part of theWebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states. These objects keep pointers to vertex data and provide names for different sets of vertex data.

WebGL extensions are available using theWebGLRenderingContext.getExtension() method. For more information, see alsoUsing Extensions in theWebGL tutorial.

Note:This extension is only available toWebGL1 contexts. InWebGL2, the functionality of this extension is available on the WebGL2 context by default and the constants and methods are available without theOES_ suffix.

Constants

This extension exposes one new constant, which can be used in thegl.getParameter() method:

ext.VERTEX_ARRAY_BINDING_OES

Returns aWebGLVertexArrayObject object when used in thegl.getParameter() method as thepname parameter.

Instance methods

This extension exposes four new methods.

ext.createVertexArrayOES()

Creates a newWebGLVertexArrayObject.

ext.deleteVertexArrayOES()

Deletes a givenWebGLVertexArrayObject.

ext.isVertexArrayOES()

Returnstrue if a given object is aWebGLVertexArrayObject.

ext.bindVertexArrayOES()

Binds a givenWebGLVertexArrayObject to the buffer.

Examples

js
const ext = gl.getExtension("OES_vertex_array_object");const vao = ext.createVertexArrayOES();ext.bindVertexArrayOES(vao);// …// calls to bindBuffer or vertexAttribPointer// which will be "recorded" in the VAO// …

Specifications

Specification
WebGL OES_vertex_array_object Khronos Ratified Extension Specification

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp