A node in the rendering graph described by a Compositor.
More...
A node in the rendering graph described by a Compositor.
◆ CompositorNode() [1/2]
nkGraphics::CompositorNode::CompositorNode |
( |
| ) |
|
◆ CompositorNode() [2/2]
◆ ~CompositorNode()
virtual nkGraphics::CompositorNode::~CompositorNode |
( |
| ) |
|
|
virtual |
◆ addOperations()
Adds an operation within the node.
- Returns
- The newly created operation. The node owns the memory allocated, external code should never delete it. See deleteOperations().
◆ getOperations()
TargetOperations* nkGraphics::CompositorNode::getOperations |
( |
unsigned int |
index | ) |
const |
Returns an existing operation.
- Parameters
-
index | The index if the operation to retrieve. |
◆ getOperationsCount()
unsigned int nkGraphics::CompositorNode::getOperationsCount |
( |
| ) |
const |
- Returns
- The number of operations active in the node.
◆ deleteOperations()
virtual void nkGraphics::CompositorNode::deleteOperations |
( |
unsigned int |
index | ) |
|
|
virtual |
Erases and frees the memory of an operation.
- Parameters
-
index | The index of the operation to free. |
◆ changeOperationsOrder()
virtual void nkGraphics::CompositorNode::changeOperationsOrder |
( |
unsigned int |
fromIndex, |
|
|
unsigned int |
toIndex |
|
) |
| |
|
virtual |
Changes the order of operations within the node. This changes the rendering, as currently the operations are executed sequentially.
- Parameters
-
fromIndex | The index of the target to move. |
toIndex | The index to which the operation should be moved. |
◆ getName()
- Returns
- The name attached to the node.
◆ getActive()
bool nkGraphics::CompositorNode::getActive |
( |
| ) |
const |
- Returns
- Whether the node is active (true) or not (false).
◆ setName()
Sets the name used by the node.
- Parameters
-
◆ setActive()
virtual void nkGraphics::CompositorNode::setActive |
( |
bool |
value | ) |
|
|
virtual |
Activates or not the node for rendering. A deactivated node won't participate in the rendering pipeline.
- Parameters
-
value | If the node is active (true) or not (false). |
◆ renderOperations()
virtual void nkGraphics::CompositorNode::renderOperations |
( |
| ) |
|
|
virtual |
◆ exportClassToTree()
virtual void nkGraphics::CompositorNode::exportClassToTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Basic exporting capabilities.
- Parameters
-
rootNode | The tree to export to. |
Implements nkExport::Exportable.
◆ importClassFromTree()
virtual void nkGraphics::CompositorNode::importClassFromTree |
( |
nkExport::Node * |
rootNode | ) |
|
|
overridevirtual |
Basic importing capabilities.
- Parameters
-
rootNode | The tree to import from. |
Implements nkExport::Exportable.
◆ operator=()
The documentation for this class was generated from the following file: