PDA

View Full Version : Draw ball......



08-24-2000, 04:54 AM
Hi,
Using glBegin(GL_QUADS);
glColor3f(..);
glNormal(..);
glVertex3f(..);
glVertex3f(..);
glVertex3f(..);
glVertex3f(..);
glEnd();
can draw box, rectangle. But how about a ball? How to draw a ball using similar method? Please help me asap. Thanks! http://www.opengl.org/discussion_boards/ubb/smile.gif

08-24-2000, 09:25 AM
How to use gluQuadricDrawStyle?

Kilam Malik
08-24-2000, 09:47 AM
GLUquadricObj *obj;
obj = gluNewQuadric();
gluSphere(obj, radius, subdivX, subdivY);
gluDeleteQuadric(obj);


Kilam.