/[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.6 by vovansim, Sun Sep 21 02:58:24 2003 UTC revision 1.7 by leiavoia, Sun Sep 28 06:06:56 2003 UTC
# Line 10  from A to B using the best possible rout Line 10  from A to B using the best possible rout
10    
11  */  */
12    
   
 //#include "../map/pathfinding/stlastar.h"  
 //#include "../map/pathfinding/mapsearch_pod.h"  
 //#include "../map/blotchmaker.h"  
13  #include "../map/map.h"  #include "../map/map.h"
14  #include "../axis/axis.h"  #include "../axis/axis.h"
 //#include "../pods/pod.h"  
 //#include "../pods/missions.h"  
 //#include "../shapes/shape.h"  
 //#include "../misc/bonus.h"  
15    
16  #include "renderman.h"  #include "renderman.h"
17  #include "../core/turn_mgr.h"  #include "../core/turn_mgr.h"
 //#include <stdlib.h>  
 //#include <iostream>  
 //#include <stdio.h>  
 //#include <time.h>  
18    
19    
20    
# Line 46  int main( int argc, char *argv[] ) { // Line 34  int main( int argc, char *argv[] ) { //
34    
35  //get args:  //get args:
36  bool fullscreen = 0;  bool fullscreen = 0;
 bool depthArg = false;  
37  int colorDepth = 0;  int colorDepth = 0;
38  for (int x = 1; x < argc; x++) {  for (int x = 1; x < argc; x++) {
39          if ( strcmp(argv[x],"--fullscreen") == 0 ) {fullscreen = true; continue;}          if ( strcmp(argv[x],"--fullscreen") == 0 ) {fullscreen = true; continue;}
40          if(strcmp(argv[x], "--color_depth") == 0) { depthArg = true; continue;}          if (strcmp(argv[x], "--color_depth") == 0) {
41          if(depthArg) {                  colorDepth = atoi(argv[x+1]);
                 //This token should be the color depth:  
                 colorDepth = atoi(argv[x]);  
42                  continue;                  continue;
43                    }
44          }          }
 }  
45    
46    
47  //Seed the random numbers:  //Seed the random numbers:
# Line 74  TurnMgr* turnmgr = new TurnMgr(); Line 59  TurnMgr* turnmgr = new TurnMgr();
59  // this starts and runs everything by itself. ignore unused variable warning  // this starts and runs everything by itself. ignore unused variable warning
60  rm = new RenderMan(1024, 768, fullscreen, colorDepth);  rm = new RenderMan(1024, 768, fullscreen, colorDepth);
61    
 //delete themap;  
 //delete blotchmaker;  
   
62    
63  return 0;  return 0;
64  }  }

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

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