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

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/tom/conechecker.py Lines: 30
OpenGL-Demo PyOpenGL-Demo/tom/checker.py Lines: 30
OpenGL-Demo PyOpenGL-Demo/tom/pick.py Lines: 24
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 100
OpenGL-Demo PyOpenGL-Demo/redbook/fog.py Lines: 101
OpenGL-Demo py2exe-example/shader_test.py Lines: 90
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 498
glutWireSphere
OpenGLContext OpenGLContext/shadow/volume.py Lines: 313, 330