2017年4月25日 星期二

Week10 陳冠宇

用足球檔案了解模型的程式碼,obj and mlt檔案
使用codeblocks匯入模型
是車車

換成花 檔案在data資料夾 更改匯入來源名稱


play game

把裡面的槍聲拿來用
在模型的程式碼加上滑鼠函式
void mouse(int button, int state, int x , int y)
{
    PlaySound("C:\\Users\\user\\Desktop\\myGLMsample\\Shot.wav",NULL,SND_ASYNC);
}

並在main函式中加上glutMouseFunc(mouse);


加入do re mi fa so鋼琴音 使用keyboard函式

沒有留言:

張貼留言