GLDraw Class Reference

List of all members.

Detailed Description

Functions for generating easily recognizable 3D geometric objects.


Public Member Functions

char[] toString ()
 Gets an object identification.

Static Public Member Functions

void cube (bit solid, double size)
 Renders a cube.
void sphere (bit solid, double radius, int slices, int stacks)
 Renders a sphere centered at the modeling coordinates origin of the specified radius.
void cone (bit solid, double base, double height, int slices, int stacks)
 Renders a cone oriented along the Z axis.
void torus (bit solid, double inner_radius, double outer_radius, int nsides, int rings)
 Renders a torus (doughnut) centered at the modeling coordinates origin whose axis is aligned with the Z axis.
void tetrahedron (bit solid)
 Renders a tetrahedron centered at the modeling coordinates origin with a radius of the square root of 3.
void octahedron (bit solid)
 Renders a octahedron centered at the modeling coordinates origin with a radius of 1.0.
void dodecahedron (bit solid)
 Renders a dodecahedron centered at the modeling coordinates origin with a radius of the square root of 3.
void icosahedron (bit solid)
 Renders a icosahedron.
void teapot (bit solid, double scale)
 Renders a teapot.


Member Function Documentation

void GLDraw.cone bit  solid,
double  base,
double  height,
int  slices,
int  stacks
[static]
 

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.

void GLDraw.cube bit  solid,
double  size
[static]
 

Renders a cube.

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

void GLDraw.dodecahedron bit  solid  )  [static]
 

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

void GLDraw.icosahedron bit  solid  )  [static]
 

Renders a icosahedron.

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

void GLDraw.octahedron bit  solid  )  [static]
 

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

void GLDraw.sphere bit  solid,
double  radius,
int  slices,
int  stacks
[static]
 

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.

void GLDraw.teapot bit  solid,
double  scale
[static]
 

Renders a teapot.

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

void GLDraw.tetrahedron bit  solid  )  [static]
 

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

void GLDraw.torus bit  solid,
double  inner_radius,
double  outer_radius,
int  nsides,
int  rings
[static]
 

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

char [] GLDraw.toString  ) 
 

Gets an object identification.

Returns:
a string that identifies the object (or the class)


SourceForge.net Logo DSource.org Logo digitalmars.com Logo