Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chrono1081

macrumors G3
Original poster
Jan 26, 2008
8,870
6,285
Isla Nublar
Hi guys,

I'm reading through the OpenGL Programming Guide (Red Book) and I'm having a hard time telling which features are deprecated and which aren't, the author mentions boxes with deprecated features, but doesn't give a good explanation on how to tell since he's teaching the items in that box.

My question is this, is glBegin() and glEnd() deprecated in OpenGL 3.1 and higher? Knowing this will help me figure out his style conventions. (There are many more listed like this but glBegin() was one of the ones mentioned in the beginning).
 
Yup, you need to use VBOs.

Thank you! I suspected this and wondered why I was still using them. I'm fairly familiar with OpenGL 2.2 (no expert by any means but I can usually get what I need done) and thought I remembered seeing that the matrix stack was gone but the book just kept right on teaching it.
 
Not just the matrix stack. The whole fixed-function pipeline was a mess and I'm honestly glad it's gone. Shaders all the way, though I'm not a huge fan of GLSL and use Cg myself, but that's a personal preference.

Let me know if you have any more questions, I've been spending most of my working hours with GL 2.x / 3.x :D
 
So is the Red Book, despite it's severe problems of including deprecated code, the best way for someone to learn OpenGL for use in OSX apps at the moment?
 
I don't know what's the best way but for modern GL I wouldn't recommend it. YMMV.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.