ramana
01-19-2004, 07:48 PM
I didn't able to get the filled sphere on the window through the following code:
If I replace GLU_FILL with GLU_LINE it gives the outlined sphere.
//{{
GLUquadricObj *pobjQuad = gluNewQuadric();
glEnable(GL_LINE_SMOOTH);
gluQuadricNormals(pobjQuad, GLU_SMOOTH);
gluQuadricDrawStyle(pobjQuad, GLU_FILL);
gluSphere(pobjQuad, 300.0f, 30, 30);
//}}
If I replace GLU_FILL with GLU_LINE it gives the outlined sphere.
//{{
GLUquadricObj *pobjQuad = gluNewQuadric();
glEnable(GL_LINE_SMOOTH);
gluQuadricNormals(pobjQuad, GLU_SMOOTH);
gluQuadricDrawStyle(pobjQuad, GLU_FILL);
gluSphere(pobjQuad, 300.0f, 30, 30);
//}}