glPushMatrix(); //push備份矩陣
glTranslatef(x,y,z); //移動
glRotatef(angle, x,y,z); //旋轉
glScalef(x,y,z); //縮放
glBegin(GL_POLYGON); //開始畫
glNormal3f(nx,ny,nz); //法向量
glTexCoord2f(tx,ty); //貼圖座標
glColor3f(r,g,b); //色彩
glVertex3f(x,y,z); //頂點
glEnd();
glPopMatrix(); pop還原矩陣
作業1:


作業2:

作業3:

作業4:
沒有留言:
張貼留言