void TimerFunction(int value) { for (itor = madurai.begin(); itor != madurai.end(); itor++) { itor->Update(Window_Width, Window_Height); } glutPostRedisplay(); // ȸé Àç Ãâ·Â glutTimerFunc(1, TimerFunction, 1); // ŸÀ̸ÓÇÔ¼ö Àç ¼³Á¤ }
void TimerFunction(int value) { if (rectexist) { for (itor = shapes.begin(); itor != shapes.end(); itor++) { itor->Update(Window_Width, Window_Height, rectpt); } } glutPostRedisplay(); // ȸé Àç Ãâ·Â glutTimerFunc(10, TimerFunction, 1); // ŸÀ̸ÓÇÔ¼ö Àç ¼³Á¤ }