TarikNeaj wrote:
well, SDL won't use classes for rendering the game in screen - that's not a problem. you can still use all C++ features in your SDL game (logic, calculation etc.)
probably its matter of personal taste.
lets see some comparative info between them (from Wikipedia):
SDL:
SDL is extensively used in the industry in both large and small projects.
Over the years SDL was used for many commercial and non-commercial video game projects, for instance MobyGames listed 120 games using SDL in 2013[28] and the SDL website itself listed around 700 games in 2012.[29] Important commercial examples are Angry Birds[30] or Unreal Tournament, from the open source domain OpenTTD,[31] The Battle for Wesnoth[32] or Freeciv.[33]
The cross-platform game releases of the popular Humble Indie Bundles for Linux, Mac and Android are often SDL based.
SDL is also often used for later ports on new platforms with existing legacy code, for instance the PC game Homeworld was ported to the Pandora handheld[34] and Jagged Alliance 2 for Android[35] via SDL.
Also, several non video game software uses SDL, examples are the emulators DOSBox and VisualBoyAdvance.
There were several books written for the development with SDL (see further readings).
SDL is used in university courses teaching multimedia and computer science, for instance, in a workshop about game programming using libSDL at the University of Cadiz in 2010.
Software developers can use it to write high-performance computer games and other multimedia applications that can run on many operating systems such as
Android, iOS, Linux, Mac OS X, Windows and other platforms.
SFML:
SFML is primarily used by hobbyist game developers and startup companies consisting of several developers at most. Because SFML does not necessitate writing large amounts of code, it has been adopted by many Ludum Dare participants as well.[13] Compared to older libraries such as SDL and Allegro, the SFML user base is relatively small but growing. At the time of this writing (4 March 2015), its GitHub repository has been starred by 1968 users.[14]
SFML has been used in teaching at universities and scientific projects as well.
SFML is free and open-source software provided under the terms of the zlib/png license.
It is available on
Windows, Linux, OS X and FreeBSD.