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

◆ advance()

Kinesis::AABB2D MayaFlux::Portal::Forma::LayoutCursor::advance ( float  height)
inline

Advance the cursor downward by height and return the NDC AABB occupied by the primitive just placed.

Definition at line 45 of file LayoutCursor.hpp.

46 {
47 const float top = m_state->value;
48 const float bot = top - height;
49 m_state->write(bot);
50 return Kinesis::AABB2D { .min = { -1.F, bot }, .max = { 1.F, top } };
51 }
std::shared_ptr< MappedState< float > > m_state

References m_state, and MayaFlux::Kinesis::AABB2D::min.

Referenced by MayaFlux::Portal::Forma::make_value_row(), and MayaFlux::Portal::Forma::Collapsible::place().

+ Here is the caller graph for this function: