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

◆ stale()

bool MayaFlux::Portal::Text::TextRun::stale ( ) const

True when the atlas the layout was built against has since been replaced or has grown, so its UVs no longer match.

Definition at line 43 of file TextRun.cpp.

44{
45 const GlyphAtlas* current = atlas();
46 return current != m_atlas || (current && current->atlas_size() != m_atlas_size);
47}
glm::vec2 current
GlyphAtlas * atlas() const
The atlas the run draws from: params().atlas, else the default.
Definition TextRun.cpp:38
const GlyphAtlas * m_atlas
Definition TextRun.hpp:105

References atlas(), current, m_atlas, and m_atlas_size.

Referenced by caret(), index_at(), and vertices().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: