Kicks off a WebGL implementation

This commit is contained in:
Diego Marcos 2015-04-02 17:44:44 -07:00
parent b2585bee4d
commit c82485874d
23 changed files with 1326 additions and 165 deletions

View file

@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://www.whatwg.org/html/#htmlcanvaselement
//typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
// https://www.whatwg.org/html/#htmlcanvaselement
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
interface HTMLCanvasElement : HTMLElement {
[Pure]
@ -12,8 +12,7 @@ interface HTMLCanvasElement : HTMLElement {
[Pure]
attribute unsigned long height;
//RenderingContext? getContext(DOMString contextId, any... arguments);
CanvasRenderingContext2D? getContext(DOMString contextId);
RenderingContext? getContext(DOMString contextId);
//boolean probablySupportsContext(DOMString contextId, any... arguments);
//void setContext(RenderingContext context);