44 |
int main( int argc, char *argv[] ) { // not that we actually have any command line args, but just in case... |
int main( int argc, char *argv[] ) { // not that we actually have any command line args, but just in case... |
45 |
|
|
46 |
|
|
47 |
|
//get args: |
48 |
|
bool fullscreen = 0; |
49 |
|
for (int x = 1; x < argc; x++) { |
50 |
|
if ( strcmp(argv[x],"--fullscreen") == 0 ) {fullscreen = true;} |
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
//Seed the random numbers: |
//Seed the random numbers: |
55 |
srand(time(NULL)); |
srand(time(NULL)); |
56 |
|
|
64 |
TurnMgr* turnmgr = new TurnMgr(); |
TurnMgr* turnmgr = new TurnMgr(); |
65 |
|
|
66 |
// this starts and runs everything by itself. ignore unused variable warning |
// this starts and runs everything by itself. ignore unused variable warning |
67 |
rm = new RenderMan(1024, 768); |
rm = new RenderMan(1024, 768, fullscreen); |
68 |
|
|
69 |
//delete themap; |
//delete themap; |
70 |
//delete blotchmaker; |
//delete blotchmaker; |