Tutorial by Examples

First, download a copy of SFML from the official page. Save it anywhere in your computer where it can be easily accessed. Open Codeblocks. Go to Project->Build Options->LinkerSettings tab. Click on the Add button and go to the bin folder of SFML and select all the files present there...
If everything whas been set up correctly, the following snippet will show a window titled "SFML works!" with a green circle: #include <SFML/Graphics.hpp> int main() { sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!"); sf::CircleShape shape(100.f...
There are different approaches to the installation of SFML on Linux: Install it directly from your distribution's package repository Get the source code, build it and install it Download the precompiled SDK and manually copy the files Option 1 is the preferred one; if the version of SFML tha...
The most common way to install SFML on windows is to download the official SDK You can then unpack the archive and use it in your environment of choice. vcpkg Although it's still heavily in development, if you use Visual studio 2017 or newer, you can also install SFML via vcpkg which integrates w...
First of all you need to download the SFML SDK. Then, in order to start developing SFML applications, you have to install the following items: Header files and libraries SFML is available either as dylibs or as frameworks. Only one type of binary is required although both can be installed simultan...
Let's write a small program which will open a window, and write "Hello World" on the screen. #include <SFML\Graphics.hpp> #include <cassert> int main() { sf::RenderWindow sfmlWin(sf::VideoMode(600, 360), "Hello World SFML Window"); sf::Font font; /...

Page 1 of 1