What would you recommend using with OpenGL?
All the books I can find use glut with OpenGL, but I already have knowledge with SDL, do you know of any books that use SDL with OpenGL? Is glut better to use with OpenGL?
OpenGL question
Moderator: Coders of Rage
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: OpenGL question
You have quite a few options. glut isn't necessarily your best bet. SDL and SFML are both good choices, and there are plenty of tutorials/documentation on the web. Or, you could take the more difficult route and use glx (on *nix), wgl (on windows), or cgl (on mac osx), but each of those are very platform-dependent and often rather difficult.
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.
- Milch
- Chaos Rift Junior
- Posts: 241
- Joined: Sat Jul 11, 2009 5:55 am
- Programming Language of Choice: C++
- Location: Austria, Vienna
Re: OpenGL question
I personally dont like GLUT because you give away too much.
I even read somewhere that it is hardly used in actual games rather than in techdemos - but thats just my 2 cents.
And, in all honesty, OpenGL is a lot more complex than lets say SDL/SFML and you can make much more things wrong.
So you should take your time to learn how OpenGL works.
I have a book called "Beginning OpenGL Game Programming II" - it explains the basic stuff for OpenGL - only drawback is that the book only explains how to setup OpenGL on Windows ( so the whole native stuff on how to do that ) - but this doesnt matter if you're using SDL/SFML for setting OGL up.
I even read somewhere that it is hardly used in actual games rather than in techdemos - but thats just my 2 cents.
And, in all honesty, OpenGL is a lot more complex than lets say SDL/SFML and you can make much more things wrong.
So you should take your time to learn how OpenGL works.
I have a book called "Beginning OpenGL Game Programming II" - it explains the basic stuff for OpenGL - only drawback is that the book only explains how to setup OpenGL on Windows ( so the whole native stuff on how to do that ) - but this doesnt matter if you're using SDL/SFML for setting OGL up.
Follow me on twitter!
Re: OpenGL question
I have the same book. Honestly I didn't read it as much as I should have, it wasn't the best OGL book out there in my opinion, but I guess its alright.
- TheBuzzSaw
- Chaos Rift Junior
- Posts: 310
- Joined: Wed Dec 02, 2009 3:55 pm
- Current Project: Paroxysm
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Contact:
Re: OpenGL question
Never use GLUT in an actual game project!
- 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: OpenGL question
hahaTheBuzzSaw wrote:
Never use GLUT in an actual game project!
- 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: OpenGL question
ROFL Godot ftw!!TheBuzzSaw wrote:
Never use GLUT in an actual game project!
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