After SDL....

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Bullet Pulse
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 89
Joined: Sun Feb 21, 2010 6:25 pm

After SDL....

Post by Bullet Pulse »

I have gotten pretty comfortable with SDL, and after I finish my current project, I plan on learning another API so that I can accomplish more.
I have been given recommendations to use SFML and OpenGL, but I don't have the pros and cons of each.
If you were to recommend an API for me, what would it be, and why?
Image
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: After SDL....

Post by XianForce »

Bullet Pulse wrote:I have gotten pretty comfortable with SDL, and after I finish my current project, I plan on learning another API so that I can accomplish more.
I have been given recommendations to use SFML and OpenGL, but I don't have the pros and cons of each.
If you were to recommend an API for me, what would it be, and why?

well, OpenGL is strictly graphics, so you'd need to use something like SDL or SFML alongside it. I can already see all the SFML fanboys recommending to go use SFML, but here's what I honestly thing. Using SFML is going to be like a small back track, because to get the full speed of OpenGL, you'd have to use OpenGL with SFML anyways. So learning SFML would be like learning all the input, audio, and video stuff all over again, so that you can eventually use it with OpenGL... So imho, much better to integrate OpenGL into SDL.
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: After SDL....

Post by MrDeathNote »

XianForce wrote:
Bullet Pulse wrote:I have gotten pretty comfortable with SDL, and after I finish my current project, I plan on learning another API so that I can accomplish more.
I have been given recommendations to use SFML and OpenGL, but I don't have the pros and cons of each.
If you were to recommend an API for me, what would it be, and why?

well, OpenGL is strictly graphics, so you'd need to use something like SDL or SFML alongside it. I can already see all the SFML fanboys recommending to go use SFML, but here's what I honestly thing. Using SFML is going to be like a small back track, because to get the full speed of OpenGL, you'd have to use OpenGL with SFML anyways. So learning SFML would be like learning all the input, audio, and video stuff all over again, so that you can eventually use it with OpenGL... So imho, much better to integrate OpenGL into SDL.
I agree with this, OpenGL is extemely powerful but it's more complex than something like SDL where you can render with one line. If you feel confident enough to try OpenGL you may want to check out the last lazyfoo tutorial and then use that with the nehe tutorials to give yourself a grounding in OpenGL. But you have been warned, it can be quite a learning curve ;)
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: After SDL....

Post by XianForce »

MrDeathNote wrote: I agree with this, OpenGL is extemely powerful but it's more complex than something like SDL where you can render with one line. If you feel confident enough to try OpenGL you may want to check out the last lazyfoo tutorial and then use that with the nehe tutorials to give yourself a grounding in OpenGL. But you have been warned, it can be quite a learning curve ;)
^^ Agreed

Also check out LazyFoo's last article and NeHe.
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: After SDL....

Post by eatcomics »

yeah, there is a lot to take in, and you really have to know what features you want, because with all the lighting techniques, culling, rendering, and maths and such it can really seem overwhelming...
Image
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: After SDL....

Post by MadPumpkin »

You all sound like prophets sent by some god or something. "Thou shalt not take the name of OpenGL, until thou hast forgotten the ways of SDL!" is what I have to say for myself.... I'd probably go with learning SFML and using it with OpenGL, I was looking at SFML but never made an effort to learn it well... I do know that learning many different output libraries just like MrDeathNote said:
MrDeathNote wrote: I agree with this, OpenGL is extemely powerful but it's more complex than something like SDL where you can render with one line. If you feel confident enough to try OpenGL you may want to check out the last lazyfoo tutorial and then use that with the nehe tutorials to give yourself a grounding in OpenGL. But you have been warned, it can be quite a learning curve ;)
My thoughts exactly. Especially NeHe, great tutorials. I'm still learning from them however.


EDIT: Oh and also, I'm not a fan of Halo, but I'm a fan of good art. Your signature is F*ing sick as hell... Is that your art?
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
Live-Dimension
Chaos Rift Junior
Chaos Rift Junior
Posts: 345
Joined: Tue Jan 12, 2010 7:23 pm
Favorite Gaming Platforms: PC - Windows 7
Programming Language of Choice: c++;haxe
Contact:

Re: After SDL....

Post by Live-Dimension »

My suggestion would be to use SFML and then integrate OGL into it, but you see, SFML actually uses OGL exclusively so alot of the hard work is already done. I don't know how SDL does it. That's just me though :P
Image
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: After SDL....

Post by Ginto8 »

Live-Dimension wrote:My suggestion would be to use SFML and then integrate OGL into it, but you see, SFML actually uses OGL exclusively so alot of the hard work is already done. I don't know how SDL does it. That's just me though :P
Yes, but SFML's website actually says (I forget the exact quote though) that their rendering, though it is hardware accelerated, isn't optimized. If you are going to use something like OBB collision detection, you're going to have to calculate vertices, and because of this you can probably make rendering more efficient in cases where they've already been calculated. Also, the OP said that he already knows SDL. Though SFML is better for rendering than SDL, it's about the same otherwise (not including networking, which SFML has an amazing interface for), so he might as well use SDL with OpenGL, or else he'd have to learn two new APIs instead of just 1
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
GroundUpEngine
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 835
Joined: Sun Nov 08, 2009 2:01 pm
Current Project: mixture
Favorite Gaming Platforms: PC
Programming Language of Choice: C++
Location: UK

Re: After SDL....

Post by GroundUpEngine »

I use both but I'll say this, It doesn't matter what you use.

...If you know SDL, then use SDL. simples ;)
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: After SDL....

Post by MrDeathNote »

Ginto8 wrote:
Live-Dimension wrote:My suggestion would be to use SFML and then integrate OGL into it, but you see, SFML actually uses OGL exclusively so alot of the hard work is already done. I don't know how SDL does it. That's just me though :P
Yes, but SFML's website actually says (I forget the exact quote though) that their rendering, though it is hardware accelerated, isn't optimized. If you are going to use something like OBB collision detection, you're going to have to calculate vertices, and because of this you can probably make rendering more efficient in cases where they've already been calculated. Also, the OP said that he already knows SDL. Though SFML is better for rendering than SDL, it's about the same otherwise (not including networking, which SFML has an amazing interface for), so he might as well use SDL with OpenGL, or else he'd have to learn two new APIs instead of just 1
Agreed
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Post Reply