1.先下載freeglut資料夾然後解壓縮
再下載這些檔案 source.zip windows.zip data.zip freeglut.dll

2. 開一個新的專案glut,然後解壓縮打開source資料夾
更改裡面的3個檔案
(1) transformation.c 複製到自己專案的main.cpp
(2)glm.h放到自己的目錄裡
(3)glm.c改成glm.cpp然後放進目錄裡


3.新增glm.cpp檔案

4.把data資料夾丟到freeglut裡
然後試試看執行 transformation.exe


沒有留言:
張貼留言