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

◆ add_view_target()

void MayaFlux::Nexus::Locus::add_view_target ( std::shared_ptr< Buffers::RenderProcessor proc)

Add a render processor whose view transform this Locus drives.

On each influence the processor receives the Locus's current ViewTransform. Adding the same processor twice is a no-op. The processor must outlive the Locus or be removed via remove_view_target().

Parameters
procRender processor to drive. Ignored if null.

Definition at line 31 of file Locus.cpp.

32{
33 if (!proc) {
34 return;
35 }
36 if (std::ranges::find(m_view_targets, proc) != m_view_targets.end()) {
37 return;
38 }
39 m_view_targets.push_back(std::move(proc));
40}
std::vector< std::shared_ptr< Buffers::RenderProcessor > > m_view_targets
Definition Locus.hpp:175

References m_view_targets.