這週複習以前教過的東西:
glutInitWindowSize() 初始視窗大小
glClearColor(1,0,0,0) 用來clear的color為紅色
glColor3f(1,1,0)
glutSolidTeapot(0.3)
黃色的茶壺
打光
T-R-T
glPushMatrix() 呼叫矩陣
glTranslatef()移動
glRotatef();轉動
glPopMatrix() 釋放矩陣
mouse motion 用滑鼠轉動關節
keyboard 用鍵盤可切換關節轉動
存檔、讀檔
w+ = write加檔案
動畫、內插




沒有留言:
張貼留言