Example Program: box.cc

The next function, graphicsInit(), contains commands that are used to initialize the OpenGL state. In this case the only function called is

    glClearColor( 0.0, 0.0, 0.0, 1.0 );

which sets the background color to black.