Commit 1ad003b8 by Alisa Jung

might have fixed spheres for tesselation = 3

parent 38138692
......@@ -333,6 +333,7 @@ void MyGLWidget::drawSphere(int tesselation){
glBegin(GL_LINE_LOOP);
GLUquadric* q = gluNewQuadric();
gluQuadricOrientation(q,GLU_OUTSIDE);
// gluQuadricDrawStyle(q, GLU_FILL);
gluSphere(q, 0.5, tesselation, tesselation);
glEnd();
......@@ -444,7 +445,6 @@ void MyGLWidget::drawBox(int tesselation){
}
void MyGLWidget::drawCylinder(int tesselation){
qDebug("draw cylinder");
GLfloat specularColor[] = { 0.3, 0.5, 0.5 };
GLfloat shininess[] = { 120 };//specular exponent
glMaterialfv(GL_FRONT, GL_SPECULAR, specularColor);
......@@ -469,7 +469,6 @@ void MyGLWidget::drawCylinder(int tesselation){
}
void MyGLWidget::drawCone(int tesselation){
qDebug("draw cone");
GLfloat specularColor[] = { 0.3, 0.5, 0.5 };
GLfloat shininess[] = { 120 };//specular exponent
glMaterialfv(GL_FRONT, GL_SPECULAR, specularColor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment