- Depends only on GLFW and glad
- Tested on Zig version
0.14.0-dev.1710+8ee52f99c
(see other branches for different Zig versions) - Cross-platform compilation for Linux, MacOS and Windows
- Suitable for following OpenGL tutorials on LearnOpenGL.com
The master
branch tries to support the most recent Zig version from master
branch.
There are other branches named zig-%vesion%
which has support for different older Zig versions.
Note If you're building on Linux, ensure you have installed all required packages for GLFW. Please check "Dependencies for Wayland and X11" on Compiling GLFW Guide.
# Clone this repository
git clone https://github.com/vsvsv/zig-opengl-minimal-template
# Go into the repository
cd zig-opengl-minimal-template
# Fetch GLFW as submodule
git submodule update --init
# Build program
zig build run
MIT