This game can be installed by using make:
make installMake will put the game files in /usr/local/cpp-opengl by default, and create a wrapper script to load shaders and textures.
This can be changed with the PREFIX environment variable.
Nix can also be used to run the project straight from the repo:
nix run github:joinemm/cpp-openglA nix development shell is included which comes installed with the required libraries:
nix developIf not using nix, you can install the dependencies system wide. These are the packages for Ubuntu:
sudo apt install libglfw3-dev libglew-dev libstb-dev libglm-devFor other distros, you'll have to find the matching packages and install them on your system.
With the dependencies installed and accessible to the compiler, the included Makefile can be used for compiling and running the program.
# compile only
make
# compile and run
make run
# remove all generated build files
make cleanThe compiled binary can be found at ./game
Nix can also be used to for building:
nix build
cd result