OES_vertex_array_object: createVertexArrayOES() Methode

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.

Die OES_vertex_array_object.createVertexArrayOES() Methode der WebGL API erstellt und initialisiert ein WebGLVertexArrayObject Objekt, das ein Vertex-Array-Objekt (VAO) darstellt. Dieses verweist auf Vertex-Array-Daten und ermöglicht es, Namen für verschiedene Sätze von Vertex-Daten zu vergeben.

Syntax

js
createVertexArrayOES()

Parameter

Keine.

Rückgabewert

Ein WebGLVertexArrayObject, das ein Vertex-Array-Objekt (VAO) darstellt, welches auf Vertex-Array-Daten verweist.

Beispiele

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
// …

Spezifikationen

Specification
WebGL OES_vertex_array_object Khronos Ratified Extension Specification

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
createVertexArrayOES

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch