Core type definitions and utilities for ESEngine.
TextGlyphMode textGlyphModeFromRaw(i32 raw)
The mode a raw script-side value names; anything out of range is Color, the draw that cannot be wrong...
std::int32_t i32
Signed 32-bit integer.
constexpr i32 TEXT_VERTEX_FLOATS
std::uint8_t u8
Unsigned 8-bit integer.
@ Mask
Alpha alone is coverage and the page's colour is ignored: the silhouette of a glyph whose outline is ...
@ Sdf
Alpha is a signed distance; coverage is derived from it, and sdfBias grows the glyph (an outline pass...
@ Color
The page's RGBA, tinted: a rasterized atlas that carries native-AA coverage in alpha,...
@ Fill
Red x alpha is coverage: the glyph proper of that page. Mask underneath and Fill on top is the outlin...