Class: RenderLoop

RenderLoop

A RenderLoop causes a bu.street.threejs.SceneManager to be rendered on the next frame when it reports that its contents are invalid. The loop may be manually started/stopped and begins in the stopped state.


new RenderLoop(sceneManager)

Parameters:
Name Type Description
sceneManager bu.street.threejs.SceneManager

SceneManager.

Source:
bu-street/renderloop.js
Fires:

Extends

  • ol.Object

Members


rendering :boolean

Whether the loop is currently rendering.

Type:
  • boolean
Source:
bu-street/renderloop.js

running :boolean

Whether the loop is running.

Type:
  • boolean
Source:
bu-street/renderloop.js

sceneManager :bu.street.threejs.SceneManager

The SceneManager wrapped by the loop.

Type:
Source:
bu-street/renderloop.js

screenshot :DOMString

The screenshot codified as a data URI.

Type:
  • DOMString
Source:
bu-street/renderloop.js

takeScreenshot :boolean

If take screenshot in each render or not.

Type:
  • boolean
Source:
bu-street/renderloop.js

Methods


changeBrightness(brightness)

Changes brightness pass.

Parameters:
Name Type Description
brightness number

Brightness. Value range in [-100,100].

Source:
bu-street/renderloop.js

changeContrast(contrast)

Changes contrast pass.

Parameters:
Name Type Description
contrast number

Contrast. Value range in [-100,100].

Source:
bu-street/renderloop.js

getSceneManager()

Get the underlying SceneManager.

Source:
bu-street/renderloop.js
Returns:
Type
bu.street.threejs.SceneManager

loop()

This is the function that will be called when a requestAnimationFrame is Executed and does the final rendering in the SceneManager.

Source:
bu-street/renderloop.js

render()

Requests a new render if it not currently rendering.

Source:
bu-street/renderloop.js

renderOnNextFrame()

Requests a render on the next frame, even if the stage contents remain valid. Does nothing if the loop is stopped.

Source:
bu-street/renderloop.js

start()

Starts the render loop.

Source:
bu-street/renderloop.js

stop()

Stops the render loop.

Source:
bu-street/renderloop.js