Class

Scene

Scene()

A scene

Constructor

new Scene()

Constructor

View Source Scene/Scene.js, line 8

Methods

add(nodes) → {Scene}

Add a node element to the scene
Parameters:
Name Type Description
nodes Node | Array.<Node> A Node instance

View Source Scene/Scene.js, line 28

A reference to the instance
Scene

find(name) → (nullable) {Node}

Find the node with the given name
Parameters:
Name Type Description
name string A string

View Source Scene/Scene.js, line 44

A Node instance of null
Node

getRoot() → {Node}

Return root node

View Source Scene/Scene.js, line 116

node A Node instance
Node

remove(node) → {boolean}

Remove a node element from the scene
Parameters:
Name Type Description
node Node A Node instance

View Source Scene/Scene.js, line 54

True if the operation is a success
boolean

update(deltaTimenullable)

Update the graph
Parameters:
Name Type Attributes Default Description
deltaTime number <nullable>
0 A floating value representing time elapsed between two frames

View Source Scene/Scene.js, line 63

visit(renderTarget)

Visit the graph
Parameters:
Name Type Description
renderTarget RenderTarget Renderer who called this method

View Source Scene/Scene.js, line 91