Week04
1 先到 jsyeh.org/3dcg10
下載 data 和 win32
把兩個檔案解壓縮 把data丟到windows資料夾裡面
2.打開Transformation
glTranslatef 可調整(左右,上下,前後)
glTotatef 可調整旋轉角度
glScalef 可調整縮放
利用glutMouseFunc(mouse)使用滑鼠
但必須在外面用一個void mouse(int button , int state, int x, int y)
button 滑鼠左鍵為0 中鍵為1 右鍵為2
state 按下為0 放開為1
x,y 座標
6.做出一個程式滑鼠點哪茶壺就在哪
7.利用滑鼠點小黑視窗 能夠畫圖 也有程式碼
N是N個點
沒有留言:
張貼留言