Class: LoopManager

controller/LoopManager~ LoopManager

new LoopManager(application, renderImmediately)

The loop managers controls the calls made to `requestAnimationFrame` of an Application
Parameters:
Name Type Description
application controller/LoopManager Applicaton whose frame rate will be controlled
renderImmediately boolean True to start the call to request animation frame immediately
Source:

Members

application :controller/Application

Reference to the application
Type:
  • controller/Application
Source:

clock :THREE.Clock()

Clock helper (its delta method is used to update the camera)
Type:
  • THREE.Clock()
Source:

fps :number

Frames per second
Type:
  • number
Source:

guiControllers :Object

dat.gui folder objects
Type:
  • Object
Source:

pause :boolean

Toggle to pause the animation
Type:
  • boolean
Source:

Methods

animate() → {this}

Animation loop (calls application.update and application.render)
Source:
Returns:
Type
this

initDatGui(gui) → {this}

Initializes a folder to control the frame rate and sets the paused state of the app
Parameters:
Name Type Description
gui dat.gui
Source:
Returns:
Type
this

start()

Starts the animation
Source:

stop()

Stops the animation
Source: