GLDraw

Description

Members

Static functions

cone
void cone(int solid, double base, double height, int slices, int stacks)

Renders a cone oriented along the Z axis. The base of the cone is placed at Z = 0, and the top at Z = height. The cone is subdivided around the Z axis into slices, and along the Z axis into stacks.

cube
void cube(int solid, double size)

Renders a cube. The cube is centered at the modeling coordinates origin with sides of length size.

dodecahedron
void dodecahedron(int solid)

Renders a dodecahedron centered at the modeling coordinates origin with a radius of the square root of 3.

icosahedron
void icosahedron(int solid)

Renders a icosahedron. The icosahedron is centered at the modeling coordinates origin and has a radius of 1.0.

octahedron
void octahedron(int solid)

Renders a octahedron centered at the modeling coordinates origin with a radius of 1.0.

sphere
void sphere(int solid, double radius, int slices, int stacks)

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.

teapot
void teapot(int solid, double scale)

Renders a teapot. Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators.

tetrahedron
void tetrahedron(int solid)

Renders a tetrahedron centered at the modeling coordinates origin with a radius of the square root of 3.

torus
void torus(int solid, double innerRadius, double outerRadius, int nsides, int rings)

Renders a torus (doughnut) centered at the modeling coordinates origin whose axis is aligned with the Z axis.

Meta