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: |
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; |