|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Nexus::Emitter::attach | ( | const std::shared_ptr< Buffers::VKBuffer > & | buf, |
| const AttachConfig & | config = {} |
||
| ) |
Make an existing, already rendered buffer the look of this object.
Works as Agent::attach does, except that an Emitter has no orientation: every render processor the buffer has is moved to the object's position and never rotated. If the object already has a position, that position is kept and becomes the offset. Replaces any previous attachment. An attachment is not part of encoded state and must be made again after decoding.
| buf | Buffer to attach. Ignored if null. |
| config | Anchor vertex, offset and move behaviour. |
Definition at line 17 of file Emitter.cpp.
References detach(), follow_attachment(), MayaFlux::Journal::Init, m_attachment, MayaFlux::Nexus::make_attachment(), MF_ERROR, and MayaFlux::Journal::Nexus.
Here is the call graph for this function: