peterhellberg/zig-dos-like-voxel
Zig port of Mattias Gustavssons port of voxel code by Sebastian Macke
ff103e4f58b4e707acb754a335bc43ee88c3ea9f.zipGetting the voxel example from dos-like to build in Zig :zap:
[!Note]
zig translate-c -lc voxel.c > voxel.zigwas used as a starting point of the port.Most of the time was spent figuring out how to setup the build :joy:
| Color | Height |
|---|---|
These images are used for the voxel effect.
A fairly recent version of Zig master
(which would be 0.15.0-dev.769 when this was written)
SDL2GLEWpthreadYou should hopefully be able to compile the binary by calling zig build
[!Note] As a convenience you can compile and run the binary via
zig build run(orzig build run -- -wif you want to start in windowed mode)