Example #1
0
void TimerFunction(int value)
{

	for (itor = madurai.begin(); itor != madurai.end(); itor++)
	{
		itor->Update(Window_Width, Window_Height);
	}



	glutPostRedisplay(); // È­¸é Àç Ãâ·Â
	glutTimerFunc(1, TimerFunction, 1); // ŸÀ̸ÓÇÔ¼ö Àç ¼³Á¤
}
Example #2
0
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); // ŸÀ̸ÓÇÔ¼ö Àç ¼³Á¤
}