2018/5/14
1. 小考T-R-T觀念
2. PlaySound, MP3播放
3. 主題: 計時器Time
4. 主題: 內插 線性內插 動畫
(1)File-New-Project, GLUT專案
(2)把CodeBlocks Project.cbp檔改Notepad++ (.)
#include <mmsystem.h>
#include "CMP3_MCI.h"
#include "CMP3_MCI.h"
PlaySound("Shot.wav",NULL, SND_ASYNC);
鬧鐘響-起床-撥鬧鐘-繼續睡
void time(int t)
{ glutTimeFunc(2000,time,t+1);
PaySoun("Shot.wav",NULL,SND_ASYNC);
}
在main()裡 glutCreateWindow("....")之後
glutTimeFunc(6000,time,0);
內插公式
新 * a+舊 * (1-a)
(0--1)





沒有留言:
張貼留言