1.開啟codeblock 點選file→new→project
2.建立OpenGL
3.設定檔案名稱
4.儲存位置至桌面
5.執行Build and Run
1.開啟codeblock 點選file→new→project
2.建立glut(需先下載freeglut3.0.0-1 mingw版)
解壓縮至桌面 將lib資料夾裡的「libfreeglut.a」檔,重新命名成「libglut32.a」
3.設定檔案名稱
4.儲存位置至桌面
5.位置選取freeglut
6.執行Build and Run

沒有留言:
張貼留言