glutIdleFunc animation

Started by
0 comments, last by phil67rpg 5 years, 4 months ago

is there anyway to slow down the animation speed using glutIdleFunc function?


void collision()
{
	screen += 0.1667f;

	if (screen >= 1.0f)
	{
		screen = 1.0f;
		glutIdleFunc(NULL);
	}
	glutPostRedisplay();
}

I have solved my previous problem.

This topic is closed to new replies.

Advertisement