Advertisement

how to do a sphere with display list

Started by April 18, 2000 04:25 AM
-1 comments, last by Androme 24 years, 7 months ago
I use the code below : FR=glGenLists(1); glNewList(FR,GL_COMPILE); gluSphere(quadratic,1.3f,32,32); glEndList(); i added this in glinit : quadratic=gluNewQuadric(); gluQuadricNormals(quadratic, GLU_SMOOTH); gluQuadricTexture(quadratic, GL_TRUE); and i declared this : GLuint FR; GLUquadricObj *quadratic; all is okay if i draw the sphere directly in drawglscene; but it hangs if i do this in display list. what can i do ?

This topic is closed to new replies.

Advertisement