code wiki / _hdl_build / nx_char_scene.nx

nx_char_scene.nx

buildroot/runtime/_hdl_build/nx_char_scene.nx

7404 B113 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic char
docsdependenciesstructsconstsfunctions

about

nx_char_scene.nx -- the DIK-style move done sovereignly: composite a parametric CHARACTER into an ENVIRONMENT as ONE 2D scene still (how Being a DIK etc. ship art -- a posed figure rendered over a background, not layered sprites). Pure integer raster, our own PNG. Renders the character on a chroma-KEY canvas, then blits the non-key (figure) pixels over a generated interior background. HONEST: stylized 2D, our first scene-still rung; not photoreal 3D. license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_shade.nx nx_png.nx nx_zpng.nx nx_char_scene.nx

imports: nx_syscalls.nxnx_shade.nxnx_png.nxnx_zpng.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sh_rgb room_bg frect sh_rgb ↻ sh_r sh_g sh_b portrait_keyed sh_rgb ↻ sh_clear efill frect ↻ blit_keyed sys_mkdir write_png_z sys_mmap ↻ zp_deflate sys_mmap ↻ zp_lsb zp_putbit zp_sym zp_huff zp_putbit ↻ zp_match1 zp_lencode zp_sym ↻ zp_lsb ↻ zp_huff ↻ zp_flush png_be32 png_adler32 png_crc32 sys_openat_wr sys_write sys_close aw sys_write ↻ an

structs

none

consts

none

functions

11func aw(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
12func an(v: i64) -> i64 { var m: i64=v; if m==0{sys_write(1,"0" as *u8,1);return 0} let t:*u8=sys_mmap(24); var k:i64=0; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} let o:*u8=sys_mmap(24); var i:i64=0; while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 }
called by 1: main calls 2: sys_writesys_mmap
13func frect(fb: *i64, w: i64, h: i64, x0: i64, y0: i64, x1: i64, y1: i64, c: i64) -> i64
18func efill(fb: *i64, w: i64, h: i64, cx: i64, cy: i64, rx: i64, ry: i64, c: i64) -> i64
called by 1: portrait_keyed
27func portrait_keyed(fb: *i64, W: i64, H: i64, key: i64, skin: i64, hair: i64, hstyle: i64, eyec: i64, outfit: i64, expr: i64) -> i64
called by 1: main calls 4: sh_rgbsh_clearefillfrect
54func room_bg(fb: *i64, W: i64, H: i64) -> i64
called by 1: main calls 5: frectsh_rgbsh_rsh_gsh_b
78func blit_keyed(dst: *i64, W: i64, H: i64, src: *i64, CW: i64, CH: i64, ox: i64, oy: i64, key: i64) -> i64
called by 1: main
86func main(argc: i64, argv: *i64) -> i64