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 runzigvcpkg- for installingglfwon windowsglfw- for windowing and opengl context- I have not yet decided between
gladandglewfor opengl loading. I'm currently usinggladbecause it seems to be the more modern of the two.glfwis a C library, so we need to usec_importto 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