mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
bac3df801b464e992ebeb5e32b92c0c5db9c0ba5
* refactor(renderer): centralize VAO setup and rename init_underwater * refactor(gameplay): replace VBO with VAO for vertex data * fix(renderer): move depth test enable to world rendering The `glEnable(GL_DEPTH_TEST)` call was incorrectly placed in the general `render()` function, affecting UI and text rendering. Moved it to the start of the world rendering loop to ensure depth testing is only active during 3D world pass.
What's it
A cube game like Minecraft, using C++ and OpenGL.
Build Guide
Prerequisites
- CMake (>= 3.24)
- C++ 23 compatible compiler
Step
- Clone the repository
git clone https://github.com/zhenyan121/Cubed.git && cd Cubed - Configure with CMake
mkdir build && cd build cmake -G "Ninja" .. - Build the project
ninja
Languages
C++
92.6%
Python
3.7%
GLSL
1.9%
CMake
1.8%