Browse Source

TypeScript: WebGLAnimation.js

linbingquan 6 years ago
parent
commit
3ec3e7be03
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/renderers/webgl/WebGLAnimation.d.ts

+ 9 - 0
src/renderers/webgl/WebGLAnimation.d.ts

@@ -0,0 +1,9 @@
+export class WebGLAnimation {
+	start(): void;
+
+	stop(): void;
+
+	setAnimationLoop(callback: Function): void;
+
+	setContext(value: CanvasRenderingContext2D | WebGLRenderingContext): void;
+}