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

◆ map()

Text::GlyphMap MayaFlux::Portal::Forma::internal::TextSlice::map ( ) const
noexcept

Layout pixels to NDC for the current bounds.

Definition at line 85 of file TextSlice.cpp.

86{
88}
glm::vec2 extent() const
Size in pixels the run is drawn at.
Definition TextRun.cpp:68
static GlyphMap fit(Kinesis::AABB2D region, glm::vec2 source_px) noexcept
Map layout pixels [0, source_px] onto region, y flipped.
Definition GlyphMesh.cpp:5

References MayaFlux::Portal::Text::TextRun::extent(), MayaFlux::Portal::Text::GlyphMap::fit(), m_bounds, and m_run.

Referenced by refresh().

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