Signature
glutSolidTorus(
GLdouble(
innerRadius
)
,
GLdouble(
outerRadius
)
,
GLint(
nsides
)
,
GLint(
rings
)
)-> void
glutSolidTorus(
innerRadius
,
outerRadius
,
sides
,
rings
)
glutSolidTorus( GLdouble(innerRadius), GLdouble(outerRadius), GLint(sides), GLint(rings) ) -> None
glutWireTorus(
GLdouble(
innerRadius
)
,
GLdouble(
outerRadius
)
,
GLint(
nsides
)
,
GLint(
rings
)
)-> void
glutWireTorus(
innerRadius
,
outerRadius
,
sides
,
rings
)
glutWireTorus( GLdouble(innerRadius), GLdouble(outerRadius), GLint(sides), GLint(rings) ) -> None
Parameters
Variables | Description |
---|---|
innerRadius |
Inner radius of the torus.
|
outerRadius |
Outer radius of the torus.
|
nsides |
Number of sides for each radial section.
|
rings |
Number of radial divisions for the torus.
|
See Also
glutSolidSphere glutSolidCube glutSolidCone glutSolidDodecahedron glutSolidOctahedron glutSolidTetrahedron glutSolidIcosahedron glutSolidTeapotSample 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.
glutSolidTorus