code wiki / (root) / nx_nxa_view_emit.nx

nx_nxa_view_emit.nx

buildroot/runtime/nx_nxa_view_emit.nx

9053 B71 linesdepth 2pulls 4 transitivereach 0 importersview sourcekind tooltopic nxa
docsdependenciesstructsconstsfunctions

about

nx_nxa_view_emit.nx -- SOVEREIGN NXA browser-viewer emitter: reads a .nxa (our animated 3D format, knowledge/nxa_format_spec.md), VALIDATES it (refuse corrupt/future at emit time -- the same nxa_find the native reader uses), and emits a self-contained WebGL2 page whose JS re-verifies the checksums IN THE BROWSER before building GPU buffers. The page is the proof the format is interoperable end-to-end: FBX -> NXA -> any browser, no third-party code. usage: nx_nxa_view_emit <in.nxa> <out.html> <title> license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_base64.nx nx_nxa.nx nx_nxa_view_emit.nx

imports: nx_syscalls.nxnx_base64.nxnx_nxa.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nve_w sys_write sys_mmap sys_map_file sys_openat_rd sys_lseek sys_close nxa_find nxa_magic nxa_check2 nxa_tag4 b64_encode b64_enc_char nve_ap nve_ap_n sys_openat_wr sys_write ↻ sys_close ↻ nve_num sys_mmap ↻ sys_write ↻

structs

none

consts

12const NVE_OUT_CAP: i64 = 8388608

functions

14func nve_ap(out: *u8, pos: i64, s: *u8) -> i64
called by 1: main
20func nve_ap_n(out: *u8, pos: i64, s: *u8, n: i64) -> i64
called by 1: main
26func nve_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
27func nve_num(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
39func main(argc: i64, argv: *i64) -> i64