2015年4月30日 星期四

02160501_陳立中_WEEK10

4/30
今日目標
(1)複習lesson32
(2)OPENCV設定 讀圖
(3)OPENGL設定
(4)貼圖設定
(5)做小遊戲

下載opencv2.1 下載名字最長那個

開啟project console application


設定complier search dirction - compiler
add "c:\opencv2.1\include"


設定complier search dirction - linker
add "c:\opencv2.1\lib"

 設定complier  - linker setting
add "cv210" "cxcore210" "highgui210"


寫程式就可以秀出圖片



設定OpenGL
把freeglut/bin - freeglut.dll放到project的資料夾裡面

設定complier search dirction - compiler
add freeglut\include的路徑

 不要設定相對路徑
 設定complier search dirction -linked
add freeglut\lib的路徑
 不要設定相對路徑
新增5個在linker setting
"freeglut" "opengl32" "glu32" "gdi32" "winmm"


加上程式碼就可以一起跑出來




把image轉成貼圖


做出圓 可以做出旋轉的地球





沒有留言:

張貼留言