B
B
Bogdan Markov2016-02-08 02:32:43
C++ / C#
Bogdan Markov, 2016-02-08 02:32:43

Choice of a beginner c++ gamedeveloper: SDL, SFML or something else?

Hello!
The question is: to develop simple games (currently a hobby) in C ++ (I speak the language at an intermediate level) which of the libraries is better to delve into? I heard that SFML is more modern and supports the concept of OOP, while SDL is more popular and has a long history =)
My choice fell on SDL (more precisely SDL2), but the active use of C-style in it (pointers instead of links, C-strings, etc.) .p.) makes me sad. I think if it is worth working with it, then only if you first find / create a wrapper yourself (with all sorts of goodies like smart pointers) around its original functions. But in this case, is the game worth the candle and is it not easier to immediately switch to SFML (which I have not tried to use yet)?
Initially, my choice fell on SDL because in one of the topics on Reddit someone shared their experience in developing under SFML and said that their project crashed on many drivers, and therefore I had to completely rewrite it under SDL, which works quite stably .
Elsewhere, someone mentioned that SDL gives access to some low-level things that SFML does not have access to.
I would like to know (if someone is in the know): can SFML really have problems with drivers? And will those low-level things from SDL be useful to me (theoretically)?
Well, in general, a comparison of these two libraries is also welcome.
PS Somewhere in a topic about gamedev I came across the Allegro library, which, unlike the previous two, supports iOS and Android. Also on the wiki I saw a mention of the clanLib lib, which seems to be sharpened for game development. In general, what I want to say: if you know something about the mentioned or any other similar libraries, I also look forward to hearing from you.
UPD. Sorry, I overlooked it - the official SDL website says that iOS and Android are supported. The SFML website says that support will be coming soon.
UPD2. I didn’t specify in the question, but in general I want to deal with something cross-platform (and including mobile platforms, it’s generally beautiful), and not sharpened for a specific OS. Plus, I'm going to develop the projects themselves in Linux Ubuntu (+ then compiling the finished code under Windows), so the tools should be able to run under Linux :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
maaGames, 2016-02-08
@Puchryamba

Pay attention to the dates of bad and good comments on frameworks.
Personally, I preferred SFML precisely because of the plus. There was no desire to write my own wrappers over SDL, and the shortcomings of SFML did not specifically affect me. Low-level stuff in SFML is available because OpenGL is available. It's just that SFML doesn't have wrappers for 3D-related functionality.
The toy started up on Win7 and Ubuntu.
SFML supports both iOS and Android, but "everything is very complicated" there.
SDL also supports, but I could be wrong.

R
RedHairOnMyHead, 2016-02-08
@ThePyzhov

I support the comment above in favor of SFML.
But I would not say that everything is so difficult there.
A good library for 2D games, and it's pretty easy to roll something good.

A
AtomKrieg, 2016-02-08
@AtomKrieg

HGE consider. Its structure is very good. It will help at first to create simple things.
such as igdc.ru/project.php?id=21

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question