No description
- Zig 100%
Had to add a step after the C translation to modify the source code as Fensterl stopped working due to https://codeberg.org/ziglang/zig/issues/31888 For this instead of writing a ReadFile step and a ModifyFile step, I just wrote a small tool to do it, and call it from the build script. |
||
|---|---|---|
| src | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
ZPNM Viewer
This is a simple viewer for PNM (Portable aNymap Format) images, using my own PNM parsing library, zpnm. It uses fensterl for the display, and should work on Mac, Windows and Linux (X11 only), but was only tested on Linux so far.
Build
# Small executable
zig build -Doptimize=ReleaseSmall
# Fast executable (don't know if that much faster)
zig build -Doptimize=ReleaseFast
Usage
zpnm-viewer - a PNM (Portable aNymap Format) viewer
Usage:
zpnm-viewer file
Parameters:
file The file to parse and display