code wiki / _hdl_build / nx_obj_export_gate.nx
nx_obj_export_gate.nx
buildroot/runtime/_hdl_build/nx_obj_export_gate.nx
about
nx_obj_export_gate.nx -- the bestiary also exports as OBJ+normals (game/DCC-friendly). Meshes 3 variants
(human/goblin/wolf) and writes knowledge/synth_<v>.obj, asserting: v-count == mesh verts, vn-count == verts,
f-count == tris, and the files are distinct. license_tier: ORIGINAL expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_sdfrender.nxnx_meshgen.nxnx_assetvariant.nxnx_obj_export.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
| none |
functions
| 10 | func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 11 | func pn(v: i64) -> i64 |
| 23 | func count_prefix(path: *u8, c0: i64, c1: i64) -> i64 |
| 40 | func fsize(path: *u8) -> i64 { let lp: *i64 = sys_mmap(16) as *i64; let b: *u8 = sys_read_file(path, lp); if (b as i64)==0 { return 0 } return lp[0] } |
| 42 | func main() -> i64 |