測試截圖
1.打開Code Blocks 17.12 -> File -> Project
2.選擇OpenGL-> Go (位置選擇桌面->寫檔名)
3.按下 Build and run,會看到在轉動的三角形
GLUT
1.到moodle下載freeglut
2.下載完點進去檔案裡面後,將檔案拉到桌面
3.複製檔案路徑-> 點進lib檔案夾 -> 將短的檔案複製貼上後改檔名為libglut32.a
4.打開CodeBlocks -> File -> Project -> OpenGLUT -> Build and run可看到6個圖形
Teapot
1.開啟新File,步驟如上 -> 改寫程式碼(如下圖) -> Build and run後可見圖形出現
沒有留言:
張貼留言