
i
i
i
i
i
i
i
i
5.2. Scene Graphs 97
#include <stdlib.h>
// Header file for the X windows platform and viewer
#include <Inventor/Xt/SoXt.h>
#include <Inventor/Xt/viewers/SoXtExaminerViewer.h>
// Header file for the nodes in the scene graph. Separator
// nodes divide the graph up into its components.
#include <Inventor/nodes/SoSeparator.h>
// Header for the lighting classes
#include <Inventor/nodes/SoDirectionalLight.h>
// Header for the materials classes
#include <Inventor/nodes/SoMaterial.h>
// Header for a cube object class
#include <Inventor/nodes/SoCube.h>
int main(int , char
**
argv){
// Get an X window handle
Widget theWindow = SoXt::init(argv[0]);
// Create the ...