2022年2月22日 星期二

Ru的電腦圖學筆記>

 


第一個OPENGL程式

    1.安裝Codeblocks

    2.File/New/Project/OpenGL專案

    3.在[...]的目錄中點選<桌面>


    4.完成後,Build&Run,會看到旋轉的彩色三角形



 第一個GLUT專案
    1.Moodle下載freelut
    2.解壓縮 桌面 freeglut 目錄
    3.桌面的freeglut 裡的 lib 裡面的 libfreeglut.a 複製並改成libgult32.a
    4.Fild/New/Project/GLUT
    5.取名:week01_GLUT

    6.設定 GLUT目錄 C:\Users\......\Desktop\freeglut


    7.Build&Run,會看到六個圖形在轉動

Github程式備份
    1.登入 Github
    2.Repositories 新增專案倉庫
    3.取名2022graphics1,點選 Public-Add gitignore 用C++,按確認

    4.到 Moodle 安裝 Git for windows 後開啟 Git Bash
        -cd desktop 進入桌面
        -git clone https://github.com/MCUYeeZhiHua/2022graphics1
        -cd 2022graphics1


    5.這時桌面會新增<2022graphics1>資料夾,把2個程式檔案夾放進
        -git status 看狀態(會看到紅色2個目錄)
        -git add .  把它加進去
        -git status 在看狀態(變綠色)



    6.推送上雲端,要先有 commit 的動作,第一次使用時,需
        -git config --global user.email "09160501@me.mcu.edu.tw"
        -git config --global user.name "MCUYeeZhiHua"
        -git commit -m"add week01"
        -git push 推送上雲端 (預設瀏覽器要登入才行)

完成!!!💓💓💓💓💓💓💓💓💓


        





沒有留言:

張貼留言

VERY BEAUTIFUL, VERY POWERFUL

一.     一樣先安裝且設定好freeglut,OpecCV, 開啟CodeBlocks建立新專案 week11_gundam,                 把 MyGundam.zip下載解壓縮後的data資料夾放到freeglut/bin裡面 把week09_openc...