code wiki / _hdl_build / nx_gx1b_page3d_gate.nx

nx_gx1b_page3d_gate.nx

buildroot/runtime/_hdl_build/nx_gx1b_page3d_gate.nx

8930 B143 linesdepth 9pulls 29 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_gx1b_page3d_gate.nx -- Gx-1b: the LIVE Nishi-Browser renders a FETCHED HTML page whose <img> element is filled by the sovereign SW-GPU 3D rasterizer. This is the honest completion of nishi-browser-3d-surface: our OWN browser engine (br_layout: HTML -> CSS cascade + box/flow layout; br_shot_png/br_draw_fb: paint -> RGBA framebuffer -> PNG) lays out a REAL page (heading + paragraphs + image element) and the 3D scene is painted into the element's box via the browser's OWN image path (page.bimg) -- driven by the page's live layout, not a standalone gate. ZERO third-party (no WebGPU/WebGL/canvas). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_browser_render.nx nx_gx1b_page3d_gate.nx

imports: nx_browser_render.nx

imported by: nobody (leaf or entry point)

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

main gxb_puts sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close gxb_pn

structs

none

consts

none

functions

9func gxb_puts(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
10func gxb_pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 }
called by 1: main
11func gx_edge(ax: i64,ay: i64,bx: i64,by: i64,px: i64,py: i64) -> i64 { return (bx-ax)*(py-ay)-(by-ay)*(px-ax) }
called by 1: gx_tri
12func gx_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: gx_tri
13func gx_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: gx_tri
14func gx_clamp(v: i64,lo: i64,hi: i64) -> i64 { if v<lo{return lo} if v>hi{return hi} return v }
called by 1: gx_tri
15func gx_tri(fb: *u8, zbuf: *i64, W: i64, H: i64, x0: i64,y0: i64,x1: i64,y1: i64,x2: i64,y2: i64, z: i64, r: i64,g: i64,b: i64) -> i64
34func gx_proj(vx: i64,vy: i64,vz: i64, cy: i64,sy: i64,cx: i64,sx: i64, CX: i64,CY: i64, FOCAL: i64, CAMZ: i64, out: *i64) -> i64
called by 1: gx_render_cube
48func gx_render_cube(rgb: *u8, W: i64, H: i64) -> i64
calls 2: gx_projgx_tri
88func main() -> i64