Constructors
constructor
- new AnimationFrameLoop(): AnimationFrameLoop
Accessors
Methods
add
- add(callback, once?, delay?, order?): (() => void)
Parameters
- callback: ((time: number, deltaTime: number, ...args: any[]) => void)
- (time, deltaTime, ...args): void
Parameters
- time: number
- deltaTime: number
Rest
...args: any[]
Returns void
- once: boolean = false
- delay: number = 0
- order: number = DEFAULT_ORDER
Returns (() => void)
移除动画循环函数
disponse
- disponse(): void
Returns void
getContext
- getContext(): any
Returns any
setContext
- setContext(context): void
Returns void
Static
getFrameTime
- getFrameTime(): number
Returns number
添加到动画循环