Files Classes Functions Hierarchy
00001 #include <iostream> 00002 using namespace std; 00003 00004 #include <GL/glut.h> 00005 00006 #include <commandline.h> 00007 #include <graphmisc.h> 00008 #include <zpr.h> 00009 #include <zprtest.h> 00010 00011 00012 00013 int main(int argc, char** argv) 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 } 00037
1.5.8