Some experiments in zig. The main goal here is to get some graphics going and generally play around a bit.
- Get a
hello world
going - Get syntax highlighting and debugging to work
- Get a basic triangle on the screen
- Get a animated triangle mesh going. Wireframes only.
- Build for other systems than macos
- Try to get a dynamic library built in zig, and use
dlopen()
to live-reload functions
- Zig people seem to use VSCode. Well, ok then.
- I tried raylib-zig but could not get it to compile. Switched to sokol and sokol-zig bindings.
Note
I use vscodium
and I'm a complete NOOB wrt VSCode.
I use these extensions:
- Zig Language, which installs
zig
andzls
(zig language server) - The debugger task uses CodeLLDB
- Shader language support
- GLSL Lint could not get this running
- put
sokol-shdc
from sokol-tools somewhere in your path. I used the binaries from sokol-tools-bin and linked it to~/.local/bin