-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
58 lines (42 loc) · 1.46 KB
/
Copy pathMain.cpp
File metadata and controls
58 lines (42 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "Launcher.h"
int main(int argc, const char** argv) {
const char* log[3]={"azerty","aa","q"};
// Initialization
//--------------------------------------------------------------------------------------
const int screenWidth = 1000;
const int screenHeight = 700;
InitWindow(screenWidth, screenHeight, "Simulateur"); SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
if (argc==1){
Launcher L;
L.Principal();
}
else if((strcmp( argv[1], "-ex") == 0)&& argc==3)
{
bool verif;
for (int i = 0; i < 3; i++)
{
if(strcmp( argv[2],log[i]) == 0)
{
verif=true;
break;
}
else verif=false;
}
if (verif)
{
Launcher L("exo");
L.Principal();
}
else cout<<"utilisateur non reconnu"<<endl;
}
else
{
cout<<"Option non reconnue\nPour lancer le programme :\n./projet ou ./projet <login>"<<endl;
}
// De-Initialization
//--------------------------------------------------------------------------------------
//CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
return 0;
}