
網站下載data,win32,glut32.dll
將windows解壓把data和glut32.dll放入
就可開啟texture
2.

glTexCrood2f(tx,ty);///調整貼圖頂點位置
3.簡單的讀圖秀圖opencv(要+freeglut32和載opencv外掛)

位置:main函式前

build options--->


add--->opencv/include位址
使用opencv外掛時要告訴codeblocks外掛位址

linker--->add加入外掛檔案位址

告訴codeblocks你會用到的外掛檔案

show出圖檔(圖片位置須在freeglut/bin中)
4.my earth

將freeglut和你要的圖檔.jpg放到文件夾
把my earth.cbp圖中反白部分改成"."打開myearth就可執行

potato earth
沒有留言:
張貼留言