glutSolidCube - Man Page

Draw a solid cube centered at the origin.

Library

OpenGLUT - geometry

Synopsis

#include <openglut.h>

void
glutSolidCube(GLdouble width);

Parameters


width

The width, height and depth of the cube.

Description

The glutSolidCube() function draws a solid-shaded cube with side-length given by


width.

The vertices of the cube are at (+/-


width/2,

+/-


width/2,

+/-


width/2),

so that the cube is centered at the origin.

Authors

Code contributed by Andreas Umbach <marvin@dataway.ch>

See Also

glutWireCube(3)

Referenced By

glutWireCube(3).