I would like to apologize in advance for this rather dumb (newbie) question…
I understand the fundamentals on how a 3D graphics system works, but I am unfamiliar with OpenGL. The sample programs that I’ve been able to understand were all very simple, they just displayed 2D images by Declaring Polygons between glBegin and glEnd, then calling glFlush to draw them into the buffer and then onto the screen (Through GLUT).
This seems fine, but I’m looking at more advanced programs and I’m confused as to what actually happens between glBegin and glEnd. If I wanted to model an object, say something simple like a cube, what do I have to do with OpenGL? Do I have to form the polygons of the cube (post Transformations) through calls to glBegin and glEnd during every run of the display function? Or is the information stored somewhere from the first modeling of the cube? If it is stored there, then how can I access that information so that I have something to perform transformations on?
Finally, what exactly happens (on the data level) between glBegin and glEnd? Does this simply draw primitives into the frame buffer, or does it actually update part of the OpenGL state machine?