EPOK RUNTIME
epok::Text
Struct
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.
Struct
Struct declared by the text module for native text data and HUD text components.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "text.hpp"
epok::Text& value = /* obtain a valid instance from your game */;Fields and constants
alignExposes `align` on `epok::Text` for native text data and HUD text components.FieldcolorExposes `color` on `epok::Text` 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.FieldkeyThe string table key this text shows, or -1 for its own text.FieldvalueUTF-8, verbatim.Fieldvisible_glyphsUses existing alignment padding.FieldwrapExposes `wrap` on `epok::Text` for native text data and HUD text components.Field