2023年2月16日 星期四

LS._. Week01 設定環境

 第一個OpenGL程式

  • CodeBlocks,File,New,Project  開啟新專案

  • 找到OpenGL project按下go

  • 打標題+檔案放桌面,finish

  • 按下Build and run  執行程式

第二個程式:GLUT程式

  • 在桌面上的葉正聖老師上課用軟體裡找到freeglut拉到桌面上
  • 桌面\freeglut\lib 裡面的libfreeglut.a 複製成 libglut32.a
  • CodeBlocks:File-New-Project 找到GLUT project按下go
  • 打標題+檔案放桌面
  • 把目錄設定成桌面的freeglut就可以了
  • 按下Build and run  執行程式










沒有留言:

張貼留言