Skip to content

vkontrimas/simple-voxels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-voxels

A simple voxel engine.

A screenshot from the game.

Dependencies

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

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.)

Building

mkdir build
cd build
cmake .. -DSIVOX_BUILD_TESTS=ON -DGLM_TEST_ENABLE=OFF
cmake --build .
  • SIVOX_BUILD_TESTS=ON enables the engine unit tests.
  • GLM_TEST_ENABLE=OFF disables unit tests from the glm library.

Running

Make sure you run the game executable with data as the working directory.

About

OpenGL voxel game.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors