Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


SDL vs SFML


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 Ferazu   Members   -  Reputation: 173

Like
2Likes
Like

Posted 01 April 2013 - 03:16 PM

Hi all!
I've been studying C++ for a while now and I want to start with 2d-programming and then work my way towards 3d-programming (heard opengl is a good way to start). I have some background in C# and XNA where I have programmed couple of small games such as Asteroids, Pac-man and a 2d-platformer. I've heard alot about SDL and SFML but can't really decide which one to choose. The main goal is to learn more C++ through game-programming.

Any recommendations from you guys? Would appreciate if you could share your own personal experience and perhaps some good tutorials etc.


Sorry for my english btw, it's not my native language :)



Sponsor:

#2 EddieV223   Members   -  Reputation: 1407

Like
3Likes
Like

Posted 01 April 2013 - 03:35 PM

If I were you I would use SFML, since it's object oriented.  Will be good for you to see a well designed object oriented library.


Edited by EddieV223, 02 April 2013 - 10:44 AM.

If this post or signature was helpful and/or constructive please give rep.

 

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

 

// Easy to learn 2D Game Library c++

SFML2.1 Download http://www.sfml-dev.org/download.php

SFML2.1 Tutorials http://www.sfml-dev.org/tutorials/2.1/

 

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20

 


#3 Servant of the Lord   Crossbones+   -  Reputation: 21213

Like
11Likes
Like

Posted 01 April 2013 - 03:51 PM

Both are really good libraries. Either one will work for you. I'd lean more to SFML, though. It's very cleanly written. My full opinion is written up in this thread.

Currently, I use SFML for my projects, but I've also used SDL extensively, and if I was forced to use SDL again, I wouldn't mind at all.

 

The official SFML tutorials are excellent (though not fully updated for 2.0 yet). For SDL, Lazy Foo's SDL tutorials are fantastic.


Edited by Servant of the Lord, 01 April 2013 - 03:53 PM.

It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#4 Ferazu   Members   -  Reputation: 173

Like
0Likes
Like

Posted 02 April 2013 - 10:03 AM

Thx all! Decided to look into sfml. Seems like it's not compatible with VS2012? Do you use VS2010 or is there an easy way to make with work with VS2012? Or is it just better to use VS2010 when working with sfml?
 


Edited by Ferazu, 02 April 2013 - 10:06 AM.


#5 Cornstalks   Crossbones+   -  Reputation: 6991

Like
2Likes
Like

Posted 02 April 2013 - 10:22 AM

Thx all! Decided to look into sfml. Seems like it's not compatible with VS2012? Do you use VS2010 or is there an easy way to make with work with VS2012? Or is it just better to use VS2010 when working with sfml?

It's compatible with VS2012, though you might have to build the libraries yourself. It's a fairly simple process, if you follow the tutorial for building.


Edited by Cornstalks, 02 April 2013 - 10:22 AM.

[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#6 EddieV223   Members   -  Reputation: 1407

Like
3Likes
Like

Posted 02 April 2013 - 10:45 AM

Get on the sfml forum, search for "nightly" you should find a thread with sfml 2.0 built from the repo, there is a package for vs2012.


If this post or signature was helpful and/or constructive please give rep.

 

// C++ Video tutorials

http://www.youtube.com/watch?v=Wo60USYV9Ik

 

// Easy to learn 2D Game Library c++

SFML2.1 Download http://www.sfml-dev.org/download.php

SFML2.1 Tutorials http://www.sfml-dev.org/tutorials/2.1/

 

// SFML 2 book

http://www.amazon.com/gp/product/1849696845/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1849696845&linkCode=as2&tag=gamer2creator-20

 


#7 Cornstalks   Crossbones+   -  Reputation: 6991

Like
4Likes
Like

Posted 02 April 2013 - 11:12 AM

Get on the sfml forum, search for "nightly" you should find a thread with sfml 2.0 built from the repo, there is a package for vs2012.

This. Here, I'll even provide the link to eXpl0it3r's builds: linky. If you're using VS 2012, you want the "Visual C++ 11" binaries.


[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#8 Ferazu   Members   -  Reputation: 173

Like
0Likes
Like

Posted 02 April 2013 - 11:34 AM

Guys, you have all been really helpful, thanks alot! Will start using sfml tonight :)  



#9 Serapth   Crossbones+   -  Reputation: 5795

Like
0Likes
Like

Posted 02 April 2013 - 02:41 PM

Thx all! Decided to look into sfml. Seems like it's not compatible with VS2012? Do you use VS2010 or is there an easy way to make with work with VS2012? Or is it just better to use VS2010 when working with sfml?

It's compatible with VS2012, though you might have to build the libraries yourself. It's a fairly simple process, if you follow the tutorial for building.

 

I did a somewhat more detailed tutorial on building for Visual Studio 2010 with CMake, but other than changing a value in the drop down, I think the process is identical for 2012.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS