Week14
安裝Git GitBash
-cd desktop
-git clone https://github.com/Owoyayou/2023graphicsa
-cd 2023graphicsa
-start .
程式:timer
freeglut再裝一次
glutTimerFunc
CodeBlocks:File - New - Project
改用keyboard()來觸發timer()而不要在main()裡直接觸發
增加mouse()負責處理按下去、放開對應動作
motion()負責即時更新角度
timer()裡想要用100格的內插,所以t小於100十持續設定下一次timer
用alpha算出角度值
先備份今日程式碼上傳至Github
(打開2023graphicsa資料夾,把今日程式碼檔案放進來)
-git add .
-git status
(開啟檔案總管)
-git config --global user.email ______________
-git config --global user.name Owoyayou
-git commit -m "week13"
-git push
回到Final_Project > 使用CodeBlocks開啟Final_Project.cbp
更新內容
int show[4]={1,1,1,1};
int ID=0;///0:頭 1:身體 2:上手臂 3:下手臂
if(ID==0) glColor3f(1,0,0);///選定 設紅色
else glColor3f(1,1,1);///沒選定 設白色
-git status
-git add .
-git status
-git commit -m "week14_挑選關節"
-git push






沒有留言:
張貼留言