|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Bridge::bind | ( | uint32_t | id, |
| std::shared_ptr< Nodes::Node > | node, | ||
| std::function< float(double)> | project = {} |
||
| ) |
Drive element value from a Node's output each frame.
Spawns a GraphicsRoutine that reads node->get_last_output() every tick, applies project, and writes into the element's MappedState. Node must be processed externally (EXTERNAL mode read). Replaces any existing inbound binding on this element.
| id | Element id (from Layer::add / Mapped::element.id). |
| node | Node to read from. |
| project | Optional double -> float projection. Identity if empty. |
Definition at line 38 of file Bridge.cpp.
References spawn_inbound().
Here is the call graph for this function: