diff options
author | Istvan Miklos <istvan.miklos@h-lab.eu> | 2020-03-05 15:51:18 +0100 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-03-13 11:38:28 -0400 |
commit | 1b4a3d8987077ce003ab0755b33663bda7f31935 (patch) | |
tree | b48a0ce1fa85b29107455a0094a936a7eb7e9b50 /components/script/dom/webidls/WebGLVertexArrayObject.webidl | |
parent | 4b1bb895a30e798f3b0c293e4cf95630db692323 (diff) | |
download | servo-1b4a3d8987077ce003ab0755b33663bda7f31935.tar.gz servo-1b4a3d8987077ce003ab0755b33663bda7f31935.zip |
Add VertexArrayObject support for WebGL2
The implementation was already in place for OpenGL ES.
My approach with this patch is to add support for WebGL2 by
sharing the implementation between the WebGL2 and GLES.
Diffstat (limited to 'components/script/dom/webidls/WebGLVertexArrayObject.webidl')
-rw-r--r-- | components/script/dom/webidls/WebGLVertexArrayObject.webidl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/script/dom/webidls/WebGLVertexArrayObject.webidl b/components/script/dom/webidls/WebGLVertexArrayObject.webidl new file mode 100644 index 00000000000..a42d8cbe051 --- /dev/null +++ b/components/script/dom/webidls/WebGLVertexArrayObject.webidl @@ -0,0 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +// +// WebGL IDL definitions scraped from the Khronos specification: +// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.17 +// + +[Exposed=(Window), Pref="dom.webgl2.enabled"] +interface WebGLVertexArrayObject : WebGLObject { +}; |