mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +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,10 +11,6 @@
|
|||
typedef long long GLint64;
|
||||
typedef unsigned long long GLuint64;
|
||||
|
||||
|
||||
// interface WebGLVertexArrayObject : WebGLObject {
|
||||
// };
|
||||
|
||||
typedef (/*[AllowShared]*/ Uint32Array or sequence<GLuint>) Uint32List;
|
||||
|
||||
interface mixin WebGL2RenderingContextBase
|
||||
|
@ -540,10 +536,10 @@ interface mixin WebGL2RenderingContextBase
|
|||
void uniformBlockBinding(WebGLProgram program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
|
||||
|
||||
/* Vertex Array Objects */
|
||||
/*WebGLVertexArrayObject? createVertexArray();
|
||||
WebGLVertexArrayObject? createVertexArray();
|
||||
void deleteVertexArray(WebGLVertexArrayObject? vertexArray);
|
||||
[WebGLHandlesContextLoss] GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
|
||||
void bindVertexArray(WebGLVertexArrayObject? array);*/
|
||||
void bindVertexArray(WebGLVertexArrayObject? array);
|
||||
};
|
||||
|
||||
[Exposed=Window, Pref="dom.webgl2.enabled"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue