開啟檔案後將圖片上程式碼打上去
儲存後開啟就會出現茶壺的圖案了
標題想好沒,家豪?
餅且在顯示圖案的程式碼前加上
glColor3f(0~1,0~1,0~1);或glcolor3ub(0~255,0~255,0~255);程式碼
標題想好沒,家豪?
與之前的程式碼大致相同
只需要按照圖片輸入程式碼
glBegin(GL_POLYGON);
glColor3f(1,0,0);glVertex2f(1,0);
glColor3f(0,1,0);glVertex2f(-1,1);
glColor3f(0,0,1);glVertex2f(-1,-1);
glEnd();
標題想好沒,家豪?



沒有留言:
張貼留言