網路搜尋:freeglut

打開之後滑到下面,點擊 Martin Payne's Windows binaries (MSVC and MinGW)

會跑到另外一個網頁點擊 Download freeglut 3.0.0 for MinGW 下載

下載完之後解壓縮後會產生一個資料夾。

然後把include裡的GL丟到Dev C++的include

然後把libd裡的.a檔丟到Dev C++的lib

bind裡的.dll檔丟到windows/system32裡

Dev C++
1.新增->專案->Console Application
2.專案選項(Ctrl+H)->參數->連結器輸入 -lopengl32 -lfreeglut -lglu32
3.下載範例程式執行是否成功



3D Graphics with OpenGL by Examples (ntu.edu.sg)

參考資料:
(1) Using Dev-C++ for OpenGL GLUT/freeGLUT Programming - YouTube
文章標籤
全站熱搜
