This is a Minecraft clone, made with recreational intended purposes.
Currently, this is only tested for macOS. To build on macOS, run
make run
Which will build the executable file in the bin
folder.
Features that are implemented include:
- Movement
- Placing and blocks
- Removing blocks
- Hotbar
- OpenGL graphics rendering
- GLFW utility library for OpenGL
- GLM for OpenGL mathematics
- imgui for GUI
- stb image for images
Path: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon
Update glfw path: cmake -D CMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
- Optimize rendering
- Pack and unpack the data, each vertice should be 0-16 (4 bits); a face is (4 * 6) / 8 = 3 bytes
- Pass a chunk_pos vec3 into the vertex shader
- Either vectors are slow or classes are slow, most likely the former. Load times are taking a while...
- Chunks rendering as player moves around
- Physics
- Padding issues, add
-Wpadded
to see- See this article