carljdp/zig-xplat-cube
An Experiment - Learning cross-platform Zig lang + OpenGL
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
zigvcpkg - for installing glfw on windowsglfw - for windowing and opengl contextglad and glew for opengl loading. I'm currently using glad because it seems to be the more modern of the two.glfw is a C library, so we need to use c_import to use it in Zig.src/ - zig source filessrc/main.zig - main entry pointbuild.zig - zig build config.env - nothing here yet.env.example - nothing here yetUsed paid versions of both ChatGPT and GitHub Copilot
// TODO: choose license