A series of demos from Learn OpenGL implemented in Zig.
Here are some libraries used compared to the tutorial:
| C Library | Corresponding Zig Library |
|---|---|
| OpenGL | zgl |
| GLFW | mach-glfw |
| GLAD | builtin to zgl |
| stb_image.h | zigimg |
| GLM | zalgebra |
- Zig 0.13.0
- GLFW
- OpenGL 3.3 Core
Run zig build -h to see a list of demos. For example, run zig build run-hello-triangle to see a triangle.