glutSolidTorus(3)

glutSolidTorus3

Render a solid or wireframe torus (doughnut) respectively.

Usage


    

    
        

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

Arguments

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.

Overview

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.

Author

Mark J. Kilgard ([email protected])

From freeglut 3.8.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.