Beispiel #1
0
void display(){
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glRotatef(angle, 0.0f, 0.0f , 1.0f);
	glPushMatrix();
	drawFan(width, height, 0.10);
	glPopMatrix();
	glutSwapBuffers();
}
void draw() {
	background(204);

	if (currentMode == 1) {
		drawStrip();
	}
	else if (currentMode == 2) {
		drawFan();
	}
}