Install CSFML, SFML for C Language
Create 2D games quickly and easily!
The good thing about having CSFML also installed on your system is that several other programming languages that have bindings for SFML, use CSFML as a wrapper instead of SFML itself.
Example on Ubuntu:
If you want to install everything at once:
There is also a download for macOS, however, you can also use Brew, to do this just run the command:
You can also compile from scratch, but remember that you must first have SFML installed as a dependency. To do this, run the commands below:
Basic example code
Create an example file:
NOTE: If you compiled from scratch and encountered an error when running the binary that is looking for file:
.so, then you will need to add the path that was installed to your
You can add this line to your
~/.bashrcto automate this addition and not need to run this command every time you run CSFML binaries!
The names of the functions and how to use them are very intuitive, because if you already know SFML it is easy to deduce.
For more information visit the links:
- Repository: https://github.com/SFML/CSFML
- Downloads page: https://sfml-dev.org/download/csfml/
- Usage example: https://26.customprotocol.com/csfml/index.htm
- Alternative documentation: https://epitech-2022-technical-documentation.readthedocs.io/en/latest/csfml.html