I only have basic understanding of c++. I was wondering if someone could help me figure out how to get the user to input the velocity values themselves and then have the animation play when enter is pushed. I have set velocity values of 0.025 and 0.02, but I want the user to input values between 0.01 - 1.0.
// _tmain() - program entry point
int _tmain(int argc, _TCHAR* argv[])
{
// initialise the glut library
glutInit(&argc, argv);
// set up the initial display mode
// need both double buffering and z-buffering
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
// set the initial window position
glutInitWindowPosition(100, 100);
// set the initial window size
glutInitWindowSize(500, 500);
// create and name the window
glutCreateWindow("Motion Blur Swipe Trails!");
// reshape callback for current window
glutReshapeFunc(winReshapeFunc);
// set display callback for current window
glutDisplayFunc(renderScene);
// set up the global idle callback
glutIdleFunc(update);
// enter the glut event processing loop
glutMainLoop();
return 0;
}