/ **
GluCylinder void * (* GLUquadric quad,
* GLdouble base,
* GLdouble top,
* GLdouble height,
* Glint slices,
* Glint stacks)
*
* /
# define glutSolidCylinder (base, altura, slices, stacks) gluCylinder (gluNewQuadric (), base, base
, Height, slices, stacks)
void glutSolidCylinder (float r, float h, int n, int m)
(
glPushMatrix ();
glRotatef (90,1.0 F, 0.0F, 0.0F);
glTranslatef (0.0F, 0.0F,-h / 2);
GLUquadricObj * qobj = gluNewQuadric ();
gluQuadricDrawStyle (qobj, GLU_FILL);
gluCylinder (qobj, r, r, h, n, m);
gluDeleteQuadric (qobj);
glPopMatrix ();
)
Bookmarks