Advertisement

glutIdleFunc animation

Started by December 03, 2018 11:06 PM
0 comments, last by phil67rpg 5 years, 11 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