|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
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. | |
| 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. | |
| glm::uvec2 | render_bounds { 1280, 720 } |
| Hard render bounds in pixels. | |
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 – 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 48 of file InkPress.hpp.