Use timer func

glutTimerFunc