Examples¶
Examples are small C programs under examples/ that exercise the public ABI directly.
Included Programs¶
minimal_render_loop.c- engine lifecycle + render loopinput_echo.c- event batch parsing and rendering event summariesresize_redraw.c- resize handling and redraw behavior
Build¶
Run¶
./out/build/posix-clang-debug/zr_example_minimal_render_loop
./out/build/posix-clang-debug/zr_example_input_echo
./out/build/posix-clang-debug/zr_example_resize_redraw
What To Learn From These Examples¶
- how to negotiate versions/config
- how to parse packed event records safely
- how to build valid drawlist payloads
- how to structure wrapper-controlled frame loops