The code for the SFML book I write : "Sfml Blueprints" https://www.packtpub.com/game-development/sfml-blueprints
chapter 3 : https://youtu.be/EpZT4FGFGu0
chapter 7 : https://www.youtube.com/watch?v=urs6nvBl6G8
chapter 8 : https://youtu.be/n8G1FpdjY1g
- You need to have a valid clone of the SFML 2.2.x (https://github.com/LaurentGomila/SFML/releases/tag/2.2) and need to build it.
- A C++11 compiler (avoid Visual studio and prefer mingw for windows users)
- Clone this repo
git clone https://github.com/Krozark/SFML-book.git
- Once it's done, use Cmake to build the project.
cd path/to/SFML-Book
mkdir build
cd build
cmake-gui ..
- You will need to set the variable
- GLEW_INCLUDE_DIR to path/to/SFML/extlibs/headers
- GLEW_LIBRARY to path/to/SFML/extlibs/libs-[compiler]/x[32/64]/libglew32.a depending on your system
- press "configure" and "generate"
- your file is now generated in the path/to/SFML-Book/build/ directory. You can use it to build the entire book projects.
- notice that for windows user, you will have to copy the dll of the externals libraries to your system path
- the libraries are located into the path/to/SFML-Book/lib/ directory
no graphical changes