glTranslatef(x,y,z);//float
glTranslated(x,y,z);//double
不同的形狀和大小
glutSolidDodecahedron
glutSolidCube(2);
glutSolidTeapot(3);
旋轉的函式
glRotatef(..,x,y,z);//..代表角度,x,y,z選軸
glRotated(..,x,y,z);

x軸>>>>右
y軸>>>>上
z軸>>>>前
p.s.負的表示反方向
glRotated(30,1,0,0);表示先沿著x軸轉30度
調整大小的函式
glScalef(x,y,z);對應的軸大小

沒有留言:
張貼留言