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

◆ invoke()

template<typename T , typename Context = InfluenceContext>
void MayaFlux::Nexus::Influence< T, Context >::invoke ( const Context &  ctx) const
inline

Build the value from ctx and hand it to every target.

Definition at line 115 of file Influence.hpp.

116 {
117 if (!m_producer) {
118 return;
119 }
120 const T value = m_producer(ctx);
121 for (const auto& target : m_targets) {
122 target(value);
123 }
124 }
glm::vec3 value
std::vector< Target > m_targets

References MayaFlux::Nexus::Influence< T, Context >::m_producer, MayaFlux::Nexus::Influence< T, Context >::m_targets, and value.