AnimFrameUpdateStrategy Class
This strategy uses a timer function to call an update function. The timer (re)start function can be provided or the strategy reverts to one of the window.*requestAnimationFrame variants.
Constructor
AnimFrameUpdateStrategy
(
-
[requestAnimationFrame]
Parameters:
-
[requestAnimationFrame]
Function optionalfunction to use for timer creation
Item Index
Methods
Methods
start
(
-
updateFunction
Starts the update strategy using the given function
Parameters:
-
updateFunction
Functionthe function to call at each update
startTicker
()
(Re)Starts the ticker
tickFunction
()
This method calls the (user) update and restarts itself