Merge pull request #27864 from mayfieldiv/patch-1

three: WebGLRenderer: Rename animate() to setAnimationLoop()
This commit is contained in:
Ron Buckton
2018-08-08 16:44:55 -07:00
committed by GitHub

View File

@@ -5658,6 +5658,11 @@ export class WebGLRenderer implements Renderer {
* A build in function that can be used instead of requestAnimationFrame. For WebVR projects this function must be used.
* @param callback The function will be called every available frame. If `null` is passed it will stop any already ongoing animation.
*/
setAnimationLoop(callback: Function): void;
/**
* @deprecated Use {@link WebGLRenderer#setAnimationLoop .setAnimationLoop()} instead.
*/
animate(callback: Function): void;
/**