8 unsigned numberOfProcessors;
12 // This is main function. Do not change it.
13 int main(int argc, char** argv)
15 glutInit(&argc, argv);
18 puts("Please provide the filename, i.e. \'nbody bodiesfield.dat\'");
23 System_Init(&universe,argv[1]);
25 if (argc == 3) numberOfProcessors = atoi(argv[2]);
29 glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
30 glutInitWindowSize(WIDTH, HEIGHT);
31 glutInitWindowPosition(POSITION_X, POSITION_Y);
32 glutCreateWindow("N-Body Parallel");
33 glutDisplayFunc(Graphics_Display);
34 glutIdleFunc(Graphics_Animate);
35 glutKeyboardFunc(Graphics_Keyboard);
36 glutReshapeFunc(Graphics_Reshape);
40 printf("Use:\n X - exit\n I, J, K, M - rotate\n W, Z, A, S - move to view"
41 " point\n ./, - zoom in/out\n +/- - scaled zoom in/out\n");