• Advertisement


This topic is now archived and is closed to further replies.

how to do a sphere with display list

This topic is 6550 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ?

Share this post

Link to post
Share on other sites

  • Advertisement