And provide c-only api between code modules
704 CHAPTER 20 OpenGL on Mac OS X
LISTING 20.2 Continued
// Paint
-(void) drawRect: (NSRect) bounds
{
RenderScene();glFlush(); // All done!
OpenGL with Cocoa 705
void ShutdownRC(void);
void RenderScene(void);
Hang on a Second There!
At this point in time, the astute reader may be imagining the sound of screeching tires on pavement. Was that a glFlush you saw after RenderScene in Listing 20.2 instead of some sort of buffer swap call? Indeed it was, and this brings us to an interesting subtlety of OpenGL on Mac OS X (as well as a nice segue into the next section).