Welcome
Welcome to the official SFML documentation for C. Here you will find a detailed view of all the SFML functions.
If you are looking for tutorials, you can visit the official website at www.sfml-dev.org.
Short example
Here is a short example, to show you how simple it is to use SFML in C :
*
* #include <SFML/Audio.h>
* #include <SFML/Graphics.h>
*
* int main()
* {
*
*
* if (!window)
* return EXIT_FAILURE;
*
*
* if (!texture)
* return EXIT_FAILURE;
*
*
* if (!font)
* return EXIT_FAILURE;
*
*
* if (!music)
* return EXIT_FAILURE;
*
*
*
*
* {
*
* {
*
* }
*
*
*
*
*
*
*
*
* }
*
*
*
* return EXIT_SUCCESS;
* }
*