• Advertisement
Sign in to follow this  

Which will be better for a beginner, SDL, SFML or OpenGL?

This topic is 1328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello guys! smile.png

I want to make games.For now simple 2D games, but I don't know from where to start. I "know" C++, but i havent worked with classes.I want to begin with game development and I searched in the internet so there are 3 librarys SDL, SFML and OpenGL.As I said i'm beginner, so my question is - which is better to begin with and why?And also what should I know to begin? Thanks :)

Edited by sn0k3

Share this post


Link to post
Share on other sites
Advertisement

OpenGL is just an API to talk to your graphics hardware - for rendering.

SDL and SFML are libraries which act as an abstraction layer between your program and the operating system.

Share this post


Link to post
Share on other sites
If you are looking to make 2d gamea you arw not going to use opengl unless you want to complicate things. As for SDL and SFML I havent ever used sfml but I use sdl. I was able to make my first game in sdl only a week after I started learning it.

Share this post


Link to post
Share on other sites

I had my very first experience with game programming using SDL. It has a lot of useful tutorials for beginners around the internet. I can't talk about SFML since I've never used it, but I did pretty well with SDL and learned the basics with it. smile.png

Edited by Hauck

Share this post


Link to post
Share on other sites

ill throw in a vote for SFML. i asked this question a few weeks back and decided to go with SFML, i haved tried SDL yet, but ive loved SFML so far, all ive managed is a simple tick tack toe game so far. but im liking it so far, the real downside wit SFML is i would say there are fewer good tutoraials out there. if you want i could try and help you with what little i know! though im probably hardly better off than you are

Share this post


Link to post
Share on other sites

SDL is procedural and completely based on C, you would need to work around this if you want to use object orientation.

SFML on the other hand is Object Oriented, so you'd need to work around this if you don't want to use object orientation.

 

I have used both and prefer the way SFML handles most things. But my experience with SFML is limited as I still use SDL mostly because most of my "reusable code" was crafted with SDL, and this alone is a giant reason for me to stick with it. There is also the fact that SDL is bigger, meaning better community help, more examples/tutorials, better maintenance and stability (not really counting SDL_Mixer and SDL_Image here though)...

 

I plan on using SFML for some projects though, and verify whether my first impressions were correct or not.

Edited by dejaime

Share this post


Link to post
Share on other sites

 

SFML has an official C binding.
As SDL have several java bindings. But they are still workarounds.

 

 

The C binding of SFML is not a workaround. As per the site, it is an official binding maintained by the project founder himself, along with SFML.Net. I couldn't find any official binding for SDL.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement