Constructor
Methods
add(nodes) → {Scene}
Add a node element to the scene
Parameters:
| Name | Type | Description |
|---|---|---|
nodes |
Node | Array.<Node> | A Node instance |
A reference to the instance
find(name) → (nullable) {Node}
Find the node with the given name
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | A string |
A Node instance of null
remove(node) → {boolean}
Remove a node element from the scene
Parameters:
| Name | Type | Description |
|---|---|---|
node |
Node | A Node instance |
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 |
visit(renderTarget)
Visit the graph
Parameters:
| Name | Type | Description |
|---|---|---|
renderTarget |
RenderTarget | Renderer who called this method |