|
@@ -47,4 +47,8 @@ extern class CanvasElement extends Element
|
|
|
|
|
|
/** A typed shortcut for <code>getContext("2d")</code>. */
|
|
|
public inline function getContext2d () :CanvasRenderingContext2D { return cast getContext("2d"); }
|
|
|
+
|
|
|
+ /** A typed shortcut for <code>getContext("webgl")</code>. */
|
|
|
+ public inline function getContext3d () : js.html.webgl.RenderingContext { return cast getContext("webgl"); }
|
|
|
+
|
|
|
}
|