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

◆ set() [1/4]

void MayaFlux::Kriya::Chimera::set ( size_t  layer,
Kakshya::ImageData  image 
)

Replace the layer's content with a still image, delivered on the next frame.

Definition at line 76 of file Chimera.cpp.

77{
78 if (!m_state) {
79 return;
80 }
81
82 auto& target = m_state->layers.at(layer);
83 target.ring.reset();
84 target.collection.reset();
85 target.image.reset();
86 target.picture = std::make_shared<const Kakshya::ImageData>(std::move(image));
87 target.dirty = true;
88}
IO::ImageData image
Definition Decoder.cpp:47
std::shared_ptr< State > m_state
Definition Chimera.hpp:159

References image, and m_state.