Example Program: box.cc

Finally, we finish initializing the graphics and start the display-event cycle:

    graphicsInit();
    glutMainLoop();

graphicsInit() (at least in this program) just sets the background color.

glutMainLoop() triggers an initial display event and then is responsible for connecting events that occur to the appropriate handler. This function never returns.