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

◆ bind()

void MayaFlux::Nodes::Network::MeshTransformOperator::bind ( uint32_t  slot_index,
TransformField  field 
)

Bind a TransformField to a slot.

Parameters
slot_indexTarget slot index (as returned by MeshNetwork::add_slot()).
fieldFunction mapping accumulated time to local glm::mat4.

Replaces any previously bound field for that slot. Pass an empty std::function to remove a binding.

Definition at line 11 of file MeshTransformOperator.cpp.

12{
13 m_fields[slot_index] = std::move(field);
14 if (!m_accumulated_time.contains(slot_index))
15 m_accumulated_time[slot_index] = 0.0F;
16
18 "MeshTransformOperator: bound field to slot {}", slot_index);
19}
#define MF_DEBUG(comp, ctx,...)
std::unordered_map< uint32_t, float > m_accumulated_time
Per-slot accumulated time in seconds, keyed by slot index.
std::unordered_map< uint32_t, TransformField > m_fields
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References m_accumulated_time, m_fields, MF_DEBUG, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.