Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

glutIdleFunc animation

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!