2.glm讀模型.畫
3.WAV 音效 MP3音樂
4.小遊戲(回家作業)
用老師傳給我的程式 跑出了車子跟足球
有玩射擊遊戲
#include <mmsystem.h>
void mouse(int button, int state,int x,int y)
{
PlaySound("C:\\Users\\user\\Downloads\\Lesson32\\Data/Shot.wav",NULL,SND_ASYNC);
}
glutMouseFunc(mouse);
就可以發出射擊聲
沒有留言:
張貼留言