code wiki / (root) / nx_aa_raster.nx

nx_aa_raster.nx

buildroot/runtime/nx_aa_raster.nx

3617 B86 linesdepth 2pulls 2 transitivereach 99 importersview sourcekind librarytopic aa
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_aa_raster.nx nx_aa_font_demo.nx nx_aa_raster_test.nx nx_browser_render.nx nx_font.nx nx_font_family_gate.nx nx_font_screen_tiers.nx nx_font_space_tool.nx nx_font_specimen.nx nx_font_test.nx nx_glyph_compose.nx

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

11func aa_inside(gx: i64, gy: i64, xs: *i64, ys: *i64, cstart: *i64, clen: *i64, ncont: i64) -> i64
called by 1: aa_render
38func aa_render(xs: *i64, ys: *i64, cstart: *i64, clen: *i64, ncont: i64, cov: *u8, W: i64, H: i64, ss: i64) -> i64
64func 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