1.OpenGL(專案三角形)
1.1 CodeBlocks,File-New-Project,選OpenGL專案
3.GLUT專案
3.1 moodle下載freeglut
3.2 解壓縮到桌面 freeglut
3.3 改檔名,lib\libglut32.a
3.4 File-New-Project,GLUT專案
3.6 GLUT桌面的freeglut
build and run 結果
4.建 GitHub倉庫
1.登入 GitHub 2.建 2022graphics 的repo倉庫 2-1.設定 Public 2-2.README.md 2-3. Add .gitignore 設定 C++ 3.利用 Git指令下載 3-1. 安装 Git for windows 3-2.開啟 Git Bash 3-3. cd desktop 進人貞面 3-4. git clone https:1/你的倉庫網址 3-5.查看 桌面多2022graphics 目錄 3-6.把今天的程式複製到剛剛目錄 4.把修改的資料,推送到雲端 4-1. cd 2022graphics 進入你的倉庫 4-2. git status 看你的狀況(红的,多了目錄) 4-3. git add .把檔案加進帳冊 4-4. git status 再看一次(綠的)這裡要加入 git config --global user. email "你的email" git config --global user.name“你的名” git commit -m “上傳第1週” 4-5. git push 推送到雲端,BUT要登入 4-6 在Chrome登陸GitHub
沒有留言:
張貼留言