/[projectaxis]/projectaxis/projectAxis/src/visual/pgtest3.cpp
ViewVC logotype

Diff of /projectaxis/projectAxis/src/visual/pgtest3.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by vovansim, Sun Sep 14 23:54:34 2003 UTC revision 1.6 by vovansim, Sun Sep 21 02:58:24 2003 UTC
# Line 46  int main( int argc, char *argv[] ) { // Line 46  int main( int argc, char *argv[] ) { //
46    
47  //get args:  //get args:
48  bool fullscreen = 0;  bool fullscreen = 0;
49    bool depthArg = false;
50    int colorDepth = 0;
51  for (int x = 1; x < argc; x++) {  for (int x = 1; x < argc; x++) {
52          if ( strcmp(argv[x],"--fullscreen") == 0 ) {fullscreen = true;}          if ( strcmp(argv[x],"--fullscreen") == 0 ) {fullscreen = true; continue;}
53            if(strcmp(argv[x], "--color_depth") == 0) { depthArg = true; continue;}
54            if(depthArg) {
55                    //This token should be the color depth:
56                    colorDepth = atoi(argv[x]);
57                    continue;
58          }          }
59    }
60    
61    
62  //Seed the random numbers:  //Seed the random numbers:
# Line 64  Axis* a4 = new Axis(AXISCOLOR_G, 0); Line 72  Axis* a4 = new Axis(AXISCOLOR_G, 0);
72  TurnMgr* turnmgr = new TurnMgr();  TurnMgr* turnmgr = new TurnMgr();
73    
74  // this starts and runs everything by itself. ignore unused variable warning  // this starts and runs everything by itself. ignore unused variable warning
75  rm = new RenderMan(1024, 768, fullscreen);  rm = new RenderMan(1024, 768, fullscreen, colorDepth);
76    
77  //delete themap;  //delete themap;
78  //delete blotchmaker;  //delete blotchmaker;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26