20220221 初次使用此軟體,按老師的步驟學習中。
回家測試家中電腦是否能開啟該程式!!!
1 openGL
1-1新增一個檔案:
開啟codeblocks > File > NEW > project > 選擇openGL (Project > 選好儲存路徑 > 點選sources > main.c)。
好酷耶!
3 GLUT專案
3-1 moodle 下載 freeglut > 載後並解壓縮到桌面 > 開啟檔案並改檔名 (freeglut-lib-libglut32.a) > 開啟codeblock > file-NEW-Project > 選擇GLUT專案 > 選好後把桌面的freeglut點開
github雲端:
登入 GitHub
建 2022graphics 的 repo倉庫
要設定 Public
要 README.md
Add .gitignore 設定 C++
利用 Git指令下載
安裝 Git for Windows
開啟 Git Bash
cd desktop 進入桌面 下載到電腦
git clone https://你的倉庫網址
https://github.com/maruneko030/2022graphics
查看 桌面,多了 2022graphics 目錄
把今天的程式 複製到 剛剛目錄
把修改的資料, 推送到雲端
cd 2022graphics 進入你的倉庫
git status 看你的狀況(紅的,多了目錄)
git add . 把檔案加進帳冊
git status 再看一次(綠的)
這裡要加入
git config --global user.email "你的email"
git config --global user.name "你的名"
git commit -m "上傳第1週"
4.5. git push 推送到雲端, BUT要登入
Blogger網址:
https://2022graphicsb.blogspot.com/?fbclid=IwAR04hsfAlMWnNg9ayG4POsU34nA3dghvc9zFnFTIF3oaxl9TQ1H5Dj9K8jY
沒有留言:
張貼留言