gluCylinder

draw a cylinder

Signature

gluCylinder( GLUquadric* ( quad ) , GLdouble ( base ) , GLdouble ( top ) , GLdouble ( height ) , GLint ( slices ) , GLint ( stacks ) )-> void
gluCylinder( quad , base , top , height , slices , stacks )
gluCylinder( POINTER(GLUquadric)(quad), GLdouble(base), GLdouble(top), GLdouble(height), GLint(slices), GLint(stacks) ) -> None

Parameters

VariablesDescription
quad
Specifies the quadrics object (created with gluNewQuadric ).
base
Specifies the radius of the cylinder at z = 0.
top
Specifies the radius of the cylinder at z = height .
height
Specifies the height of the cylinder.
slices
Specifies the number of subdivisions around the z axis.
stacks
Specifies the number of subdivisions along the z axis.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

gluCylinder
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 352
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 205, 216
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 159, 170
{LGPL or GPL or MPL} Kamaelia Sketches/MPS/Examples/Checkers/CheckersPiece.py Lines: 53
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Examples/Checkers/CheckersPiece.py Lines: 53
{LGPL or GPL or MPL} Kamaelia Sketches/THF/Packages/Examples/Checkers/CheckersPiece.py Lines: 53