ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
priv_glyph_render_ctx_t Struct Reference

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).

Detailed Description

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).

Invariant
When a miss can fire, font is non-NULL and w, h are the positive extents the blit path already validated for the glyph.
Since
0.1.0

Definition at line 75 of file reflow_render.c.

Field Documentation

◆ font

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().

◆ h

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().

◆ scale

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().

◆ w

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().


The documentation for this struct was generated from the following file: