2022年2月21日 星期一

Amber's note week01

 <建立OpenGL專案>

    1.在codeblocks建立新專案file >new >project > OpenGL專案

    2.將檔案資料夾設定存於桌面

    




    3.完成後按build and run






 <水會動>

    網址:http://madebyevan.com/webgl-water/ 




<建立GLUT>

    1.在moodle下載freeglut壓縮檔 > 解壓縮到桌面 

    2.在freeglut裡找到lib的資料夾 > 將libfreegiut.a的檔案先複製再將複製的檔案改名為libgiut32.a





    3.在codeblocks建立新專案file >new >project > GLUT專案

    4.設定檔案名稱時不能有空格




    5.專案位置需存在桌面的freeglut裡



    6.完後按Build and run




<Github倉庫建立>

    1.要設public、readme.me
    2.gitignore要打勾 > 選c++

<Github指令>
    
    1. cd desktop               //進到桌面
    2. git clone 網址         //進到倉庫
    3. cd 2022graphics     //將資料夾複製到桌面
    4. git status                 //查看狀態
    5. git add .                  //將檔案加到帳冊裡
    6. git config --goble user.email"email帳號"
    7. git config --goble user.name"名稱"
    8. git push                  //推上雲端,要再登入一次

沒有留言:

張貼留言