glutSolidCube

render a solid or wireframe cube respectively.

Signature

glutSolidCube( GLdouble( size ) )-> void
glutSolidCube( size )
glutSolidCube( GLdouble(size) ) -> None
glutWireCube( GLdouble( size ) )-> void
glutWireCube( size )
glutWireCube( GLdouble(size) ) -> None

Parameters

VariablesDescription
size
Length of each edge.

Description

glutSolidCube and glutWireCube render a solid or wireframe cube respectively. The cube is centered at the modeling coordinates origin with sides of length size.

See Also

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

glutSolidCube
OpenGLContext OpenGLContext/scenegraph/boundingvolume.py Lines: 29, 323
OpenGLContext tests/shaders.py Lines: 30
OpenGLContext tests/redbook_alpha3D.py Lines: 88
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 91
OpenGL-Demo py2exe-example/shader_test.py Lines: 92
glutWireCube
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 105
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 75