code wiki / _hdl_build / nx_anim_gate.nx

nx_anim_gate.nx

buildroot/runtime/_hdl_build/nx_anim_gate.nx

3064 B93 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_anim_gate.nx -- proves the per-frame render LOOP (basis of real-time): render the world at 4 yaw angles (a 90deg sweep) by varying the spec's camera, composite into one 2x2 contact sheet. Same render_world, just a loop over frames -> motion. Reuses nx_voxel_world (no new render code). exit 0 = rendered. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_voxel_world.nx nx_anim_gate.nx

imports: nx_syscalls.nxnx_voxel_world.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 world_fb_bytes world_sky render_world world_sky ↻ sys_mmap ↻ build_cam sys_mmap ↻ m4_roty m4_identity f32_of f32_neg fratio f32_div f32_of ↻ m4_rotx m4_identity ↻ f32_neg ↻ f32_neg ↻ m4_mul f32_of ↻ f32_add f32_mul draw_col terrain_h lat sys_mmap ↻ project sys_mmap ↻ f32_sub f32_neg ↻ f32_of ↻ fratio ↻ m4_vec4 f32_of ↻ f32_add ↻ f32_mul ↻ f32_add ↻ f32_int

structs

none

consts

7const SW: i64 = 640
8const SH: i64 = 480

functions

10func mk(seed: i64, n: i64, water: i64, maxh: i64, latsp: i64,
called by 1: main calls 1: sys_mmap
17func put_u32le(b: *u8, o: i64, v: i64) -> i64
called by 1: write_sheet
24func write_sheet(fb: *i64, path: *u8) -> i64
60func main() -> i64