Is this feature deprecated in OpenGL???

Discussion in 'Mac Programming' started by chrono1081, Jul 31, 2011.

  1. chrono1081 macrumors 604

    chrono1081

    Joined:
    Jan 26, 2008
    Location:
    Isla Nublar
    #1
    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).
     
  2. Starfox macrumors regular

    Joined:
    Apr 7, 2011
  3. chrono1081 thread starter macrumors 604

    chrono1081

    Joined:
    Jan 26, 2008
    Location:
    Isla Nublar
    #3
    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.
     
  4. Starfox macrumors regular

    Joined:
    Apr 7, 2011
    #4
    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
     
  5. GorillaPaws macrumors 6502a

    GorillaPaws

    Joined:
    Oct 26, 2003
    Location:
    Richmond, VA
    #5
    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?
     
  6. Starfox macrumors regular

    Joined:
    Apr 7, 2011
    #6
    I don't know what's the best way but for modern GL I wouldn't recommend it. YMMV.
     

Share This Page