how to do a sphere with display list
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
Popular Topics
Advertisement