#include <iostream>
using namespace std;

#include <GL/glut.h>

#include <commandline.h>
#include <graphmisc.h>
#include <zpr.h>
#include <zprtest.h>



int main(int argc, char** argv)
{
  commandline cmd(argc,argv);
  uint prog(0);
  cmd.mapvar(prog,"prog");

  switch (prog)
  {
    case 0:
      cout << "./main prog=1  Display axis. The user can pan, zoom and rotate." << endl;
      cout << "./main prog=2  Calculate the frustrum's parameters from the projection matrix." << endl;
      cout << "./main prog=3  Same as prog=2 except testing with code integrated into zpr." << endl;
      break;

    case 1: return zprtest().test01(argc,argv);
    case 2: zprtest().test02(argc,argv); break;
    case 3: zprtest().test03(argc,argv); break;

    default: cout << "error:  No case handled." << endl; return 1;
  }


  return 0;
}


