|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Per-glyph state handed to the glyph-atlas render-on-miss callback. More...
Data Fields | |
| const stbtt_fontinfo * | font |
| Font for the in-flight glyph. | |
| float | scale |
| stb pixel-height scale for that glyph. | |
| int | w |
| Glyph bitmap width (from the box query). | |
| int | h |
| Glyph bitmap height (from the box query). | |
Per-glyph state handed to the glyph-atlas render-on-miss callback.
The ::ra8_glyph_atlas render seam is fixed at bind time, but the font, scale, and bitmap extent for the glyph currently being drawn vary per call. The blit path computes the box once (internal_blit_glyph) and stashes them here immediately before ra8_glyph_atlas_get, so a cache miss rasterises the right glyph at the known size without recomputing the box. Single instance (render is single-threaded, like the function-local glyph mask and s_faces).
Definition at line 75 of file reflow_render.c.
| const stbtt_fontinfo* priv_glyph_render_ctx_t::font |
Font for the in-flight glyph.
Definition at line 76 of file reflow_render.c.
Referenced by internal_atlas_render_glyph().
| int priv_glyph_render_ctx_t::h |
Glyph bitmap height (from the box query).
Definition at line 79 of file reflow_render.c.
Referenced by internal_atlas_render_glyph().
| float priv_glyph_render_ctx_t::scale |
stb pixel-height scale for that glyph.
Definition at line 77 of file reflow_render.c.
Referenced by internal_atlas_render_glyph().
| int priv_glyph_render_ctx_t::w |
Glyph bitmap width (from the box query).
Definition at line 78 of file reflow_render.c.
Referenced by internal_atlas_render_glyph().