2023年2月16日 星期四

天天開心 week01

 第一個OpenGL程式

week01-1

1. 進入codeblocks 點file中的 project


2. 拉到最下面OpenGL project


3. 進去後,按next ,輸入檔名名稱,和存取地點( 桌面 ) ,在按next下一步


4. 點finish ,點build&run



5. 就可以跑出結果


week01-2

1.  2022葉正聖老師上課軟體 裡面freeglut壓縮檔裡的freeglut目錄 再把
freeglut目錄拉到電腦桌面




2.  把桌面上的\freeglut\lib 裡的 libfreeglut.a複製成ibglut32.a


3. 再開一次codeblocks file-new-project 拉到最下面 GLUT project 


    更改檔名為week01-2 GLUT  點NEXT 


       再更改GLUT的location 選freeglut的資料夾 點next繼續 最後點finish


4. 再按一次build&run 


    結果如下
         

   
                              





沒有留言:

張貼留言