MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Portal::Text::PressParams Struct Reference

Construction parameters for press(). More...

#include <InkPress.hpp>

+ Collaboration diagram for MayaFlux::Portal::Text::PressParams:

Public Attributes

GlyphAtlas * atlas { nullptr }
 Glyph atlas to use. Null selects the TypeFaceFoundry default at call time.
 
glm::vec4 background { 0.F, 0.F, 0.F, 0.F }
 RGBA fill composited beneath every glyph.
 
uint32_t budget_h { 0 }
 Initial vertical budget in pixels. Zero applies the grow heuristic.
 
glm::vec4 color { 1.F, 1.F, 1.F, 1.F }
 RGBA color applied to all glyphs not covered by a span in spans.
 
glm::uvec2 render_bounds { 1280, 720 }
 Hard render bounds in pixels.
 
std::vector< StyleSpan > spans
 Optional per-byte-range color overrides. Empty applies color uniformly.
 

Detailed Description

Construction parameters for press().

Atlas and render bounds are fixed at press() time and owned by the resulting TextBuffer. repress() and impress() read them from the buffer and do not accept a PressParams argument.

budget_h controls the pre-allocated texture height. When zero the framework applies a k_grow_height_multiplier heuristic over the initial content height to reduce early vertical reallocation under growing text. Set to a concrete value to skip the heuristic and allocate exactly.

Width is always allocated to render_bounds.x, since the layout engine wraps at that boundary, so no content can ever exceed it and a narrower horizontal allocation serves no purpose.

Definition at line 65 of file InkPress.hpp.


The documentation for this struct was generated from the following file: