This sample code demonstrates OpenGL drawing to the entire screen. Mac OS X 10.6 and later offer a simplified mechanism to create full-screen contexts. Earlier versions of Mac OS require additional work to capture the display and set up a special context. When in the window mode, press the "Go FullScreen" button to switch to the full-screen mode; When in the full-screen mode, press [ESC] to switch to the window mode; In both modes, press [space] to toggle rotation of the globe; press [w]/[W] to toggle wireframe rendering; holding and dragging the mouse to change the roll angle and from which the light is coming.
This sample requires OS X 10.6 or higher.