code wiki / (root) / nx_textured_tri.nx

nx_textured_tri.nx

buildroot/runtime/nx_textured_tri.nx

2543 B62 linesdepth 6pulls 9 transitivereach 4 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_textured_tri.nx -- TEXTURED TRIANGLE rasterizer: barycentric edge-function fill + per-fragment UV interpolation + nx_tex_sample (bilinear). This closes the "texture mapping" residual = an image mapped ONTO a rasterized surface (real texture MAPPING, not just a standalone sampler). Pure integer, deterministic. license_tier: ORIGINAL

dependencies 2 imports · 3 importers

nx_syscalls.nx nx_tex_sample.nx nx_textured_tri.nx nx_raster_bench.nx nx_textured_tri_fast.nx nx_textured_tri_gate.nx

imports: nx_syscalls.nxnx_tex_sample.nx

imported by: nx_raster_bench.nxnx_textured_tri_fast.nxnx_textured_tri_gate.nx

structs

none

consts

none

functions

9func tt_edge(ax: i64, ay: i64, bx: i64, by: i64, px: i64, py: i64) -> i64
14func txtri_render(fb: *Image, tex: *Image, x0: i64, y0: i64, u0: i64, v0: i64, x1: i64, y1: i64, u1: i64, v1: i64, x2: i64, y2: i64, u2: i64, v2: i64) -> i64