2020年4月28日 星期二

賴胖筆記 week9

Timer 計時器

1.加入程式碼
void timer(int t)
{
    glutTimerFunc(33,timer,t+1);
    glutPostRedisplay();
}
在main函式中加入
glutTimerFunc(1000,timer,0);

T-R-T 特定轉軸

用老師做的程式來熟悉T-R-T轉動
1.第一個T是調整位置
2.第二個R式調整旋轉
3.第三個T式調整旋轉中心點(這個要最先調)

沒有留言:

張貼留言