This is a minimum and premade configuration that you need in order to get started with gunslinger. It provides all the necessary dependencies and the bash/batch scripts for compiling it on Windows, Mac and Linux.
You can also check the main Gunslinger repository here, where you'll find documentation on how to get started: Gunlinger repository
And you can also find a complete list of examples for you to learn from and test on your machine here: Gunslinger examples
- Use the following command to clone the repo and init the gunslinger submodule
git clone --recursive https://github.com/MrFrenik/gs_project_templategit submodule update --remote --rebase --recursive- From start menu, open
{x86|x64} Native Tools for {VS Version Here} - cd to
root dirwhere you downloaded project template - To compile the project, run:
proc\win\cl.bat- To execute the program, run:
bin\App.exe- From
root dir, opengit bash - To compile, run:
bash ./proc/win/mingw.sh- To execute the program, run:
./bin/App.exe- Make sure the following development libraries are installed:
sudo apt install git gcc mesa-common-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev- For Mesa and OpenGL, need to export the following:
export MESA_GL_VERSION_OVERRIDE=3.3- Credit to https://github.com/Samdal
- Open terminal
- cd to
root dirwhere you downloaded project template - To compile the project, run:
bash ./proc/linux/gcc.sh- To execute the program, run:
./bin/App- Open terminal
- cd to
root dirwhere you downloaded project template - To compile the project, run:
bash ./proc/osx/gcc.sh- To execute the program, run:
./bin/App- Open terminal
- cd to
root dirwhere you downloaded project template - To compile the project, run:
bash ./proc/osx/emcc.sh- This will generate the appropriate .html, .js, and .wsm files to load in a browser.