旋轉範例:
使用程式碼:
glTranslated();//移動
1.加幾何的茶壺形狀 glutSolidTeapot(); (在push pop之間插入)
為何有兩個rotate??
glRotated(60,1,0,0);//固定旋轉 旋轉軸 角度
glRotated(a,0,0,1);//隨著角度旋轉
2. glRotated(a,0,0,1); 對Z軸旋轉
3. glScaled(1,0.5,0.5);//縮放



沒有留言:
張貼留言