2017年10月5日 星期四

世弦 Week04

一、在glut範例專案改display()函式:

1.在glPushMatrix();和 glPopMatrix(); 中間 加入glutSolidTeapot(1.35);



2. 執行:



3.glRotated(角度, x, y, z); 改旋轉角度(右手座標系統):



glTranslatef(x, y, z); //float,移動到哪
glTranslated(x, y, z); //double,移動到哪
glRotatef(角度, x, y, z); //旋轉角度
glRotated(角度*t, x, y, z); //每單位時間旋轉角度

4.glScaled(2, 2, 2) //x,y,z 都放大兩倍:






沒有留言:

張貼留言