nx_aa_raster.nx
buildroot/runtime/nx_aa_raster.nx
about
nx_aa_raster.nx -- SOVEREIGN anti-aliased contour rasterizer (the core of the AA font renderer).
Fills closed polygon contours into an 8-bit COVERAGE buffer (0..255) via ss x ss supersampling +
even-odd inside test -- exactly how real font engines anti-alias glyph outlines. Glyph coords live in
the SUPERSAMPLED grid (W*ss by H*ss). Holes (the counter of 'o','a','e') fall out of even-odd for free.
R1 of the AA-font arc. No floats (integer cross-multiply crossing test). license_tier: ORIGINAL
dependencies 1 imports · 13 importers
diagram shows first 10 each side; +0 more imports, +3 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_aa_font_demo.nxnx_aa_raster_test.nxnx_browser_render.nxnx_font.nxnx_font_family_gate.nxnx_font_screen_tiers.nxnx_font_space_tool.nxnx_font_specimen.nxnx_font_test.nxnx_glyph_compose.nxnx_glyph_word.nxnx_vecfont_body_bench.nxnx_vecphrase_proof.nx
structs
| none |
consts
| none |
functions
| 11 | func aa_inside(gx: i64, gy: i64, xs: *i64, ys: *i64, cstart: *i64, clen: *i64, ncont: i64) -> i64 called by 1: aa_render |
| 38 | func aa_render(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, ncont: i64, cov: *u8, W: i64, H: i64, ss: i64) -> i64 |
| 64 | func aa_blit(rgb: *u8, fbw: i64, fbh: i64, ox: i64, oy: i64, cov: *u8, gw: i64, gh: i64, fr: i64, fgc: i64, fb: i64) -> i64 |