how to draw a solid cylinder with gluCylinder?

an actual solid cylinder, not just add disks to both ends…


Either put disks on both ends, or draw your own cylinder. Since the first was not interesting enough, then go for the second. gluCylinder won’t fill the holes for you.

Whatever method you choose, you will always end up drawing a cylinder with two disks in the ends.