code wiki / _hdl_build / nx_game_thirdperson_gate.nx

nx_game_thirdperson_gate.nx

buildroot/runtime/_hdl_build/nx_game_thirdperson_gate.nx

6971 B103 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic game
docsdependenciesstructsconstsfunctions

dependencies 5 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_game_raster.nx nx_png.nx nx_syscalls.nx nx_game_thirdperson_gate.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_game_raster.nxnx_png.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write sys_mmap tp_goto tp_step p_clamp p_sign gn tp_render tp_cam p_clamp ↻ gr_pack gr_rect gr_disc gr_px write_png sys_mmap ↻ png_g png_paeth png_sabs dfe_compress sys_mmap ↻ dfe_fill_tables dfe_deflate sys_mmap ↻ dfe_bits dfe_hash dfe_matchlen dfe_sym dfe_bits ↻ dfe_rev dfe_rev ↻ sys_munmap sys_munmap ↻ png_be32 png_adler32 png_crc32 sys_openat_wr sys_write ↻

structs

none

consts

none

functions

16func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
18func p_sign(v: i64) -> i64 { if v>0 {return 1} if v<0 {return 0-1} return 0 }
called by 2: tp_steptp_cam
19func p_clamp(v: i64, lo: i64, hi: i64) -> i64 { if v<lo {return lo} if v>hi {return hi} return v }
22func tp_step(ps: *i64, ix: *i64, iy: *i64, got: *i64, ni: i64, gx: i64, gy: i64, ww: i64, wh: i64, dx: i64, dy: i64) -> i64
29func tp_goto(ps: *i64, ix: *i64, iy: *i64, got: *i64, ni: i64, gx: i64, gy: i64, ww: i64, wh: i64, tx: i64, ty: i64) -> i64
34func tp_cam(c: i64, cell: i64, screen: i64, worldpx: i64) -> i64 { return p_clamp(c*cell + cell/2 - screen/2, 0, worldpx - screen) }
called by 1: main calls 4: tp_camgr_packgr_rectgr_disc
35func tp_render(fb: *i64, w: i64, h: i64, cell: i64, ww: i64, wh: i64, ps: *i64, ix: *i64, iy: *i64, got: *i64, ni: i64, gx: i64, gy: i64) -> i64
55func main() -> i64