Skip to main content

Function: makeAnimationLoop()

makeAnimationLoop(AnimationLoopTemplateCtor, props?): TemplateAnimationLoop

Defined in: modules/engine/src/animation-loop/make-animation-loop.ts:34

Instantiates an animation loop and initializes it with the template.

Parameters​

AnimationLoopTemplateCtor​

typeof AnimationLoopTemplate

props?​

MakeAnimationLoopProps

Returns​

TemplateAnimationLoop

Note​

The application needs to call start() on the returned animation loop to start the rendering loop.