A simple voxel engine.
This project uses git submodules to manage dependencies. Run the following commands after cloning to download them.
git submodule init
git submodule update --recursive
The following dependencies are used:
- Catch2 for testing.
- SDL2 for the game executable.
- glm for vector and matrix math.
- glad as the OpenGL loader. Generated source files are included in this repository with a custom
CMakeLists.txt.
SDL2 is currently being built from source. Make sure you have the required dependencies. To read about them you can go here. (Windows, Linux, Mac OS.)
mkdir build
cd build
cmake .. -DSIVOX_BUILD_TESTS=ON -DGLM_TEST_ENABLE=OFF
cmake --build .
SIVOX_BUILD_TESTS=ONenables the engine unit tests.GLM_TEST_ENABLE=OFFdisables unit tests from the glm library.
Make sure you run the game executable with data as the working directory.
