• Order of the Butterfly
    Order of the Butterfly
    Posts: 186 from 2003/10/23
    maybe i've found a little error in your example.
    when using the glut timer function, you must reset the timer callback inside the timer function.

    ----- old code ----
    void ctimer(int value)
    {
    glutPostRedisplay();
    }

    ------ new code ----
    void ctimer(int value)
    {
    glutPostRedisplay();
    glutTimerFunc(20, ctimer, 1);
    }

    with this trick the animation run smooth
    I'm nerdy in the extreme
    And whiter than sour cream

    White&Nerdy 2006 Al Yankovic
  • »04.02.11 - 13:31
    Profile