glutSolidSphere

render a solid or wireframe sphere respectively.

Signature

glutSolidSphere( GLdouble( radius ) , GLint( slices ) , GLint( stacks ) )-> void
glutSolidSphere( radius , slices , stacks )
glutSolidSphere( GLdouble(radius), GLint(slices), GLint(stacks) ) -> None
glutWireSphere( GLdouble( radius ) , GLint( slices ) , GLint( stacks ) )-> void
glutWireSphere( radius , slices , stacks )
glutWireSphere( GLdouble(radius), GLint(slices), GLint(stacks) ) -> None

Parameters

VariablesDescription
radius
The radius of the sphere.
slices
The number of subdivisions around the Z axis (similar to lines of longitude).
stacks
The number of subdivisions along the Z axis (similar to lines of latitude).

Description

Renders a sphere centered at the modeling coordinates origin of the specified radius. The sphere is subdivided around the Z axis into slices and along the Z axis into stacks.

See Also

glutSolidCube glutSolidCone glutSolidTorus glutSolidDodecahedron glutSolidOctahedron glutSolidTetrahedron glutSolidIcosahedron glutSolidTeapot

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.

glutSolidSphere
OpenGLContext tests/shaders.py Lines: 28
OpenGLContext tests/redbook_alpha3D.py Lines: 83
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 89
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 45
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 102
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 100
OpenGL-Demo PyOpenGL-Demo/tom/pick.py Lines: 21
OpenGL-Demo PyOpenGL-Demo/tom/conechecker.py Lines: 27
OpenGL-Demo PyOpenGL-Demo/tom/checker.py Lines: 27
OpenGL-Demo py2exe-example/shader_test.py Lines: 90
{Artistic License} PymmLib pymmlib/mmLib/OpenGLDriver.py Lines: 505
glutWireSphere
OpenGLContext OpenGLContext/shadow/volume.py Lines: 313, 330