8 unsigned numberOfProcessors;
12 // This is main function. Do not change it.
13 int main(int argc, char** argv)
15 glutInit(&argc, argv);
19 printf("Please provide the filename, i.e. \'%s bodiesfield.dat\'\n", argv[0]);
24 System_Init(&universe,argv[1]);
25 atexit(Universe_Cleanup);
29 numberOfProcessors = atoi(argv[2]);
34 glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
35 glutInitWindowSize(WIDTH, HEIGHT);
36 glutInitWindowPosition(POSITION_X, POSITION_Y);
37 glutCreateWindow("N-Body : Single Threaded");
38 glutDisplayFunc(Graphics_Display);
39 glutIdleFunc(Graphics_Animate);
40 glutKeyboardFunc(Graphics_Keyboard);
41 glutReshapeFunc(Graphics_Reshape);
45 printf("Use:\n X - exit\n I, J, K, M - rotate\n W, Z, A, S - move to view"
46 " point\n ./, - zoom in/out\n +/- - scaled zoom in/out\n");