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

◆ bind() [3/4]

void MayaFlux::Portal::Forma::Bridge::bind ( uint32_t  id,
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
idElement id.
sourceCallable returning current float value.

Definition at line 54 of file Bridge.cpp.

55{
56 spawn_inbound(id, std::move(source));
57}
void spawn_inbound(uint32_t id, std::function< float()> source)
Definition Bridge.cpp:59

References spawn_inbound().

+ Here is the call graph for this function: