glutSolidTorus
Prev | GLUT | Next

## Name

glutSolidTorus, glutWireTorus — render a solid or wireframe torus (doughnut) respectively.

## C Specification

`void `glutSolidTorus`` | `(` | `GLdouble `innerRadius`, GLdouble `outerRadius`, GLint `nsides`, GLint `rings`);`
`void `glutWireTorus`` | `(` | `GLdouble `innerRadius`, GLdouble `outerRadius`, GLint `nsides`, GLint `rings`);`

## Python Specification

``glutSolidTorus`` | `(` | ``innerRadius`, `outerRadius`, `nsides`, `rings`) → `None``
``glutWireTorus`` | `(` | ``innerRadius`, `outerRadius`, `nsides`, `rings`) → `None``

## Parameters

`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.

## Description

`glutSolidTorus` and `glutWireTorus` render a solid or wireframe torus (doughnut) respectively centered at the modeling coordinates origin whose axis is aligned with the Z axis.

## See Also

glutSolidSphere, glutSolidCube, glutSolidCone, glutSolidDodecahedron, glutSolidOctahedron, glutSolidTetrahedron, glutSolidIcosahedron, glutSolidTeapot

Prev | Up | Next
glutSolidTetrahedron | Home | glutSpaceballButtonFunc