下載 data win32 glut32.dll 並解壓縮

打開Texture.exe 了解貼圖座標

glTexCoord2f(tx,ty); //調整貼圖位置
glVertex3f(x,y,z); //貼圖四個頂點的位置(由左下角逆時針)
2.利用GLUT專案開啟Opencv圖檔
(1)加入Opencv外掛,並告訴編譯器檔案在哪
Bulid options>>
Search directories>>Cimpoler>>Add Opencv include資料夾 (C:\OpenCV2.1\include)
Search directories>>Linker>>Add Opencv lib資料夾 (C:\OpenCV2.1\lib)
Linker setting>>Add cv210,cxcore210,highgui210 (cv210.lib,cxcore210.lib,highgui210.lib)









(2)將圖片放到指定路徑

(3)結果


3.實作myEarth
(1)加入freeglut.dll到當前路徑

(2)更改圖片檔案路徑變成當前路徑
"C:\Users\user\Downloads\freeglut\bin">>"."

(3)下載圖片(名稱:image.jpg)到當前路徑

(4)結果
沒有留言:
張貼留言