OpenGL question

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
Randi
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 50
Joined: Sat Apr 24, 2010 1:32 pm
Location: Noobville

OpenGL question

Post by Randi »

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?
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: OpenGL question

Post by Ginto8 »

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.
User avatar
Milch
Chaos Rift Junior
Chaos Rift Junior
Posts: 241
Joined: Sat Jul 11, 2009 5:55 am
Programming Language of Choice: C++
Location: Austria, Vienna

Re: OpenGL question

Post by Milch »

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.
Follow me on twitter!
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: OpenGL question

Post by eatcomics »

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.
Image
User avatar
TheBuzzSaw
Chaos Rift Junior
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

Post by TheBuzzSaw »

Image
Never use GLUT in an actual game project!
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: OpenGL question

Post by GroundUpEngine »

TheBuzzSaw wrote:Image
Never use GLUT in an actual game project!
haha :lol:
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: OpenGL question

Post by MrDeathNote »

TheBuzzSaw wrote:Image
Never use GLUT in an actual game project!
ROFL Godot ftw!!
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