@@ -5,5 +5,5 @@ export class WebGLAnimation {
setAnimationLoop(callback: Function): void;
- setContext(value: CanvasRenderingContext2D | WebGLRenderingContext): void;
+ setContext(value: WebGLRenderingContext | WebGL2RenderingContext): void;
}
@@ -1,5 +1,5 @@
export class WebGLAttributes {
- constructor(gl: CanvasRenderingContext2D | WebGLRenderingContext);
+ constructor(gl: WebGLRenderingContext | WebGL2RenderingContext);
get(attribute: any): any;
export class WebGLUtils {
- constructor(gl: CanvasRenderingContext2D | WebGLRenderingContext, extensions: any, capabilities: any);
+ constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, extensions: any, capabilities: any);
convert(p: any): void;