#include #include #include #include #include #include #include #include #include #include #include #include extern void bezier_init(void); extern void etoileLoop(); #ifndef CLK_TCK const int CLK_TCK = sysconf(_SC_CLK_TCK); /* timedelta: returns the number of seconds that have elapsed since the previous call to the function. */ #endif float timedelta(void) { static long begin = 0; static long finish, difference; static struct tms tb; std::cout < 1 && !strcmp(argv[1], "-fullscreen")) { glutGameModeString("800x600:24@20"); glutEnterGameMode(); } else { glutCreateWindow("Particles"); } srand(time(NULL)); init_gl(); glutDisplayFunc(display); glutReshapeFunc(reshape); #if 1 glutMotionFunc(motion); glutMouseFunc(mouse); glutKeyboardFunc(keyboard); #endif glutVisibilityFunc(visible); glutMainLoop(); return 0; }