MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ bind() [1/4]

void MayaFlux::Portal::Forma::Bridge::bind ( const ElementRef &  ref,
std::function< float()>  source 
)

Drive element value from an arbitrary per-frame callable.

Spawns a GraphicsRoutine that calls source every tick and writes the result into the element's MappedState. Replaces any existing inbound binding on this element.

Parameters
refOwning Layer and element id.
sourceCallable returning current float value.

Definition at line 61 of file Bridge.cpp.

62{
63 spawn_inbound(ref, std::move(source));
64}
void spawn_inbound(const ElementRef &ref, std::function< float()> source)
Definition Bridge.cpp:66

References spawn_inbound().

+ Here is the call graph for this function: