2018年5月14日 星期一

week12 阮致峰

複習上周內容(播聲音以及更改glut目錄)
#include <mmsystem.h>
    PlaySound("Shot.wav",NULL,SND_ASYNC);


<Option working_dir="." />
""裡改成 .


解決 PlaySound(); 不能播 mp3 格式的問題
#include "CMP3_MCI.h" ///""代表在當前路徑的標頭檔
CMP3_MCI my; ///宣告一個 CMP3_MCI 的物件變數 叫 my
    my.Load("Stop it. Get some help..mp3");
    my.Play();


加入timer 
glutTimerFunc();函式


內插公式: 交叉相乘


內插結合timer







沒有留言:

張貼留言