Example Program: box.cc

The main program begins with commands to initialize the graphics system.

    glutInit( &argc, argv );
    glutInitDisplayMode( GLUT_RGB );

argc and argv are used to pass the command line parameters to the initialization routine.

GLUT_RGB tells OpenGL to use a frame buffer capable of supporting 24 bits, 8 for each of red, green, and blue.