-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMain.cpp
More file actions
52 lines (42 loc) · 980 Bytes
/
Main.cpp
File metadata and controls
52 lines (42 loc) · 980 Bytes
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
#include "Main.h"
int main(int argc, char** argv)
{
//HackTest();
//HackTest1();
//HackTest2();
//HackDogMeasurements();
//HackRaptorMeasurements();
//HackBipedMeasurements();
// testBVHReader();
// srand((unsigned)0);
gArgc = argc;
gArgv = argv;
ParseArgs(gArgc, gArgv);
InitCaffe();
glutInit(&gArgc, gArgv);
checkError();
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
checkError();
glutInitWindowSize(gWinWidth, gWinHeight);
checkError();
glutCreateWindow("Terrain RL");
checkError();
InitOpenGl();
SetupScenario();
Reshape(gWinWidth, gWinHeight);
glutDisplayFunc(Display_);
checkError();
glutReshapeFunc(Reshape);
checkError();
glutKeyboardFunc(Keyboard);
checkError();
glutMouseFunc(MouseClick);
checkError();
glutMotionFunc(MouseMove);
checkError();
glutTimerFunc(gDisplayAnimTime, Animate, 0);
checkError();
InitTime();
glutMainLoop();
return EXIT_SUCCESS;
}