EPOK RUNTIME
Text
text.hpp · native text data and HUD text components
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Module
native text data and HUD text components.
Include this module
C++ include
#include "text.hpp"Types
HudStats`rotated` counts quads emitted through the rotated path; they come out of hud_rotated_budget rather than the rectangle and glyph pools.StructLocalizationThe project's string table, installed by the generated scene code: `strings` holds `keys` strings per language, language after language.StructTextStruct declared by the text module for native text data and HUD text components.StructTextAlignHorizontal alignment of each measured line inside the text rect.EnumFunctions and methods
Fields, variables and values
alignExposes `align` on `epok::Text` for native text data and HUD text components.FieldapplyExposes `apply` on `epok::Localization` for native text data and HUD text components.FieldCenterNamed value `Center` in `epok::TextAlign`.Enum valuecolorExposes `color` on `epok::Text` for native text data and HUD text components.FielddroppedExposes `dropped` on `epok::HudStats` for native text data and HUD text components.FieldenabledExposes `enabled` on `epok::Text` for native text data and HUD text components.Fieldfont-1 is the built-in 8x16 atlas; anything else indexes the cooked fonts.FieldglyphsExposes `glyphs` on `epok::HudStats` for native text data and HUD text components.Fieldhud_statsExposes `hud_stats` on the `epok` namespace for native text data and HUD text components.VariableimagesExposes `images` on `epok::HudStats` for native text data and HUD text components.FieldkeyThe string table key this text shows, or -1 for its own text.FieldkeysExposes `keys` on `epok::Localization` for native text data and HUD text components.FieldlanguageExposes `language` on `epok::Localization` for native text data and HUD text components.FieldlanguagesExposes `languages` on `epok::Localization` for native text data and HUD text components.FieldLeftNamed value `Left` in `epok::TextAlign`.Enum valuelocalizationExposes `localization` on the `epok` namespace for native text data and HUD text components.VariablerectanglesExposes `rectangles` on `epok::HudStats` for native text data and HUD text components.FieldRightNamed value `Right` in `epok::TextAlign`.Enum valuerotatedExposes `rotated` on `epok::HudStats` for native text data and HUD text components.FieldstringsExposes `strings` on `epok::Localization` for native text data and HUD text components.FieldtextsExposes `texts` on `epok::HudStats` for native text data and HUD text components.FieldvalueUTF-8, verbatim.Fieldvisible_glyphsUses existing alignment padding.FieldwrapExposes `wrap` on `epok::Text` for native text data and HUD text components.Field