Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDL vs SFML using C when portability matters most? [closed]

I have been doing a lot of reading on SDL and SFML, and no doubt have missed some information or am not understanding it. Here is what I have gleaned:

  • SDL is presently the standard (most popular)
  • SDL uses C and software rendering (which is slow?)
  • SDL embeds on everything?
  • SFML is becoming more popular
  • SFML uses C++ (but has C bindings) and utilizes hardware accelerated rendering (fast)
  • SFML won't embed on everything?

I have to use C and OpenGL for what I want to do. I also need to make sure that the program is as portable as possible. It cannot be slow however.

What should I do?

like image 311
LunchMarble Avatar asked Dec 17 '22 11:12

LunchMarble


1 Answers

When using OpenGl with SDL, rendering is done by the hardware, not in software. I never tried SFML, but SDL is very simple and it is a mature library. Having wrote some OpenGl with SDL, the only problem I faced is that it is not possible to have multiple windows with SDL. Regarding portability, my program worked on Linux, MacOS and Windows. For the moment, I don't have any reason to switch to another library.

like image 74
neodelphi Avatar answered Dec 24 '22 11:12

neodelphi