2023年4月26日 星期三

Vicky_week11_鍵盤

Week11☝

今天第一件事來試鍵盤keyboard

打開GLUT專案,步驟都跟之前一樣

命名為week11_keyboard

執行之後按一下Esc(=27)茶壺視窗會結束






我們現在要播放音樂

加入PlaySound()函式撥放音樂

音樂檔分兩種 mp3 wav
-wav 檔案大、直接播放、比較簡單
-mp3 檔案小、有壓縮、困難


week11✌




week11👌

setting👉compiler👉Linker Setting 新增winmm


把檔案複製過去專案裡

開新的專案,在原來的程式碼裡面插入外掛
 👉(放到week11-4_glut_mp3目錄)

.
將這個路徑改成 一個點 "."






最後上傳檔案git指令
1. git指令
2. cd desktop
3. git clone https://github.com/你的帳號/2023graphicsa
4. cd 2023graphicsa
5. start .
6. git add . 
7. git status

8. git config --global user.email "電子郵件"

9. git config --global user.name "帳號名vickylo0919"

10. git commit -m "week"

11. git push

沒有留言:

張貼留言