A Zig based attempt to rotate a cube on multiple platforms.
I want to learn Zig, and I want to learn how to make cross platform applications. I also want to learn how to make 3D graphics. This project is an attempt to do all of those things at once.
// TODO: add more detailed description
// TODO: add table of contents
git clone https://github.com/carljdp/zig-xplat-cube.git
cd zig-xplat-cube
zig build run
zig
vcpkg
- for installingglfw
on windowsglfw
- for windowing and opengl context- I have not yet decided between
glad
andglew
for opengl loading. I'm currently usingglad
because it seems to be the more modern of the two.glfw
is a C library, so we need to usec_import
to use it in Zig.
- I have not yet decided between
src/
- zig source filessrc/main.zig
- main entry pointbuild.zig
- zig build config
.env
- nothing here yet.env.example
- nothing here yet
Used paid versions of both ChatGPT and GitHub Copilot
// TODO: choose license