2018年1月11日 星期四
2017年12月14日 星期四
wk14
size(600,600,P3D);
background(255);
//glBegin(GL_POLYGON);
beginShape(TRIANGLE);
//glColor3f(r,g,b);
//glVertex3f(x,y,z);
fill(255,0,0); vertex(300,100);
fill(255,255,0); vertex(500,500);
fill(0,0,255); vertex(100,500);
//glEnd();
endShape();
background(255);
//glBegin(GL_POLYGON);
beginShape(TRIANGLE);
//glColor3f(r,g,b);
//glVertex3f(x,y,z);
fill(255,0,0); vertex(300,100);
fill(255,255,0); vertex(500,500);
fill(0,0,255); vertex(100,500);
//glEnd();
endShape();
2017年11月23日 星期四
wk11
#include<mmsystem.h>這行要include否則playsoundA不能用
檔名 不等 馬上繼續
PlaySoundA("file.wav",NULL,SND_ASYNC);
等這個跑完才跑下一行
SND_SYNC
接下來用CMP3_MCI.h
音樂檔要丟在freeglut的bin理
#include<GL/glut.h>
#include<mmsystem.h>
#include<stdio.h>
#include"CMP3_MCI.h"
CMP3_MCI mp3;
int main()
{
mp3.Load("file.mp3");
int a;
scanf("%d",&a);
}
檔名 不等 馬上繼續
PlaySoundA("file.wav",NULL,SND_ASYNC);
等這個跑完才跑下一行
SND_SYNC
接下來用CMP3_MCI.h
音樂檔要丟在freeglut的bin理
#include<GL/glut.h>
#include<mmsystem.h>
#include<stdio.h>
#include"CMP3_MCI.h"
CMP3_MCI mp3;
int main()
{
mp3.Load("file.mp3");
int a;
scanf("%d",&a);
}
2017年11月2日 星期四
WK08
2017年10月26日 星期四
2017年10月19日 星期四
2017年10月12日 星期四
2017年10月5日 星期四
2017年9月28日 星期四
wk 3.soccer.cpp
2017年9月14日 星期四
訂閱:
文章 (Atom)























