Constructor
new RenderNode(name)
Name | Type | Description |
---|---|---|
name | string | Node name. |
- Source
Extends
Methods
(protected) _clear()
Clear current node.
- Overrides
- Source
addEntityCollection(entityCollection, isHiddenopt) → {RenderNode}
Adds entity collection.
Name | Type | Attributes | Description |
---|---|---|---|
entityCollection | EntityCollection | Entity collection. | |
isHidden | boolean | <optional> | If it's true that this collection has specific rendering. |
- Source
- Type:
- RenderNode
addLight(light) → {RenderNode}
Adds point light source.
Name | Type | Description |
---|---|---|
light | LightSource | Light source. |
- Source
- Type:
- RenderNode
addNode()
Adds node to the current hierarchy.
- Overrides
- Source
assign(renderer)
Assign render node with renderer.
Name | Type | Description |
---|---|---|
renderer | Renderer | Render node's renderer. |
- Source
destroy()
Destroy node.
- Overrides
- Source
drawNode()
Calls render frame node's callback. Used in renderer.
- Source
drawPickingEntityCollections(ec)
Draw entity collections picking frame.
Name | Type | Description |
---|---|---|
ec | Array.<EntityCollection> | Entity collection array. |
- Source
getNodeByName(name) → {RenderNode}
Gets node by name in the current.
Name | Type | Description |
---|---|---|
name | string | Node name. |
- Overrides
- Source
Node object in the current node.
- Type:
- RenderNode
isActive() → {Boolean}
Gets render node activity.
- Source
- Type:
- Boolean
preDrawNode()
Calls render frame node's callback. Used in renderer.
- Source
removeEntityCollection(entityCollection)
Removes entity collection.
Name | Type | Description |
---|---|---|
entityCollection | EntityCollection | Entity collection for remove. |
- Source
setActive(isActive)
Rendering activation.
Name | Type | Description |
---|---|---|
isActive | boolean | Activation flag. |
- Source
setDrawMode(mode)
Sets draw mode
Name | Type | Description |
---|---|---|
mode | Number | Draw mode, such as gl.TRIANGLES, gl.TRIANGLE_STRIP, gl.LINES etc. |
- Source