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

◆ bring_to_front()

void MayaFlux::Portal::Forma::FormaTarget::bring_to_front ( int64_t  priority) const

Draw this target after the others.

Parameters
priorityDraw priority given to a whole buffer. A slice keeps the priority of its buffer and moves to the end of the buffer's order.

Definition at line 83 of file Target.cpp.

84{
85 if (!m_state)
86 return;
87
88 if (m_state->slice != 0) {
89 m_state->buffer->bring_slice_to_front(m_state->slice);
90 return;
91 }
92
93 auto config = m_state->buffer->get_render_config();
94 config.draw_priority = priority;
95 m_state->buffer->set_render_config(config);
96}
std::shared_ptr< State > m_state
Definition Target.hpp:126

References m_state.