mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
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.
This commit is contained in:
parent
4b1bb895a3
commit
1b4a3d8987
20 changed files with 815 additions and 371 deletions
11
components/script/dom/webidls/WebGLVertexArrayObject.webidl
Normal file
11
components/script/dom/webidls/WebGLVertexArrayObject.webidl
Normal file
|
@ -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 {
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue