I use the TimerFunction below to animate spiral (make it rotate). How can I stop the TimerFunction?? I used a for-loop to test if it can be called only several times, but it did not work.
void TimerFunction(int value)
{
glRotatef(5.0,0.0f,0.0f,1.0f);
glutPostRedisplay();
glutTimerFunc(20, TimerFunction, 1);
}



