nx_mesh_view.nx
buildroot/runtime/nx_mesh_view.nx
about
nx_mesh_view.nx -- SOVEREIGN full-detail mesh renderer: loads a .nxmesh (every vertex, every
triangle -- the 1:1 capture of the reference model) and software-rasterizes it to PNG with a
z-buffer, barycentric depth, and two-light lambert. This is the proof the sovereign pipeline
CARRIES reference-class detail: 28k triangles, not 30 primitives.
usage: nx_mesh_view <in.nxmesh> <out.png> [yaw_deg]
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_itrig.nxnx_png_write.nxnx_nxa.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 11 | const MV_MAGIC_1314016334: i64 = 1314016334 |
| 12 | const MV_MAGIC_4611686018427387903: i64 = 4611686018427387903 |
| 13 | const MV_MAGIC_4096: i64 = 4096 |
| 15 | const MV_W: i64 = 640 |
| 16 | const MV_H: i64 = 1024 |
functions
| 18 | func mvw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 19 | func mvn(v: i64) -> i64 |
| 31 | func mv_isqrt(v: i64) -> i64 called by 1: main |
| 39 | func mv_min3(a: i64, b: i64, c: i64) -> i64 { var m: i64 = a; if b < m { m = b } if c < m { m = c } return m } called by 1: main |
| 40 | func mv_max3(a: i64, b: i64, c: i64) -> i64 { var m: i64 = a; if b > m { m = b } if c > m { m = c } return m } called by 1: main |
| 42 | func main(argc: i64, argv: *i64) -> i64 |