2021年6月16日 星期三

【】week17 複習【】

 這週複習以前教過的東西:

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加檔案
動畫、內插

改目錄、貼圖

沒有留言:

張貼留言

距地表面160 Week11

 #include "glm.h" GLMmodel* pmodel = NULL; void drawmodel(void) {     if (!pmodel) { pmodel = glmReadOBJ("data/porsche.obj...