I have asked this question before but I am revisiting this question, I want to get a sprite to jump in a parabolic fashion.
void jump(int val)
{
y = (-0.01) * x * x;//-100 to 0 to -100
x -= 5;// 100 to -100
if (x <= -100)
{
x = -100;
}
glutPostRedisplay();
glutTimerFunc(500, update, 0);
}