关于GLUT动画的问题我在GLUT的参考资料上看到的 animation 全部都没有说到 timing control。比如我想要在一个平面上从A点出发画一条线到B点,我要animate这个轨迹,应该怎么办呢?而且当画到B点时就停止了,而不是一个infinite loop……
谢谢!
use timer
like something called date maybe there, caculate the time elapsed, then draw again.
or in java, u can use try {Thread.sleep(milli seconds);} catch(InterruptedException e){}
or in java, u can use try {Thread.sleep(milli seconds);} catch(InterruptedException e){}