proj home

Files   Classes   Functions   Hierarchy  

main.cpp File Reference

#include <iostream>
#include <GL/glut.h>
#include <commandline.h>
#include <graphmisc.h>
#include <zpr.h>
#include <zprtest.h>

Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 13 of file main.cpp.

References commandline::mapvar().

00014 {
00015   commandline cmd(argc,argv);
00016   uint prog(0);
00017   cmd.mapvar(prog,"prog");
00018 
00019   switch (prog)
00020   {
00021     case 0:
00022       cout << "./main prog=1  Display axis. The user can pan, zoom and rotate." << endl;
00023       cout << "./main prog=2  Calculate the frustrum's parameters from the projection matrix." << endl;
00024       cout << "./main prog=3  Same as prog=2 except testing with code integrated into zpr." << endl;
00025       break;
00026 
00027     case 1: return zprtest().test01(argc,argv);
00028     case 2: zprtest().test02(argc,argv); break;
00029     case 3: zprtest().test03(argc,argv); break;
00030 
00031     default: cout << "error:  No case handled." << endl; return 1;
00032   }
00033 
00034 
00035   return 0;
00036 }


Generated on Fri Mar 4 00:49:33 2011 for Chelton Evans Source by  doxygen 1.5.8