After SDL....
Moderator: Coders of Rage
- Bullet Pulse
- Chaos Rift Cool Newbie
- Posts: 89
- Joined: Sun Feb 21, 2010 6:25 pm
After SDL....
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?
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?
Re: After SDL....
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.
- MrDeathNote
- 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....
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 curveXianForce 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.
http://www.youtube.com/user/MrDeathNote1988
"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
"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
Re: After SDL....
^^ AgreedMrDeathNote 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
Also check out LazyFoo's last article and NeHe.
Re: After SDL....
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...
- MadPumpkin
- 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....
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:
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?
My thoughts exactly. Especially NeHe, great tutorials. I'm still learning from them however.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
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
For God so loved the world that he blessed the thugs with rock
-
- 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....
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
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: After SDL....
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 1Live-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
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.
- GroundUpEngine
- 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....
I use both but I'll say this, It doesn't matter what you use.
...If you know SDL, then use SDL. simples
...If you know SDL, then use SDL. simples
- MrDeathNote
- 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....
AgreedGinto8 wrote: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 1Live-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
http://www.youtube.com/user/MrDeathNote1988
"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
"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