Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgCylinder Class Reference

An cylinder object which will adjust its level of detail based on estimated screen space error. More...

#include <ddgcylinder.h>

Class diagram for ddgCylinder:

ddgNode

List of all members.


Public Members

void init (float x = 0, float y = 0, float z = 0, float rx = 2.5, float ry = 2.5, float l = 10, float r = 1, float g = 0, float b = 0, float s = 0, float e = 1)
1 if bottom cap is inside, outside otherwise.

bool draw (ddgContext *ctx)
Render the cylinder.

void calcq ( ddgContext *ctx, float ts, float te, ddgVector3 *ps, ddgVector3 *pe)
Calculate one quadrant of the cylinder.

void drawq ( ddgVector3 *cap )
Render one quadrant of the cylinder.

ddgColor3 color
A RGB colour tuple.

ddgVector3 pos
Position of cylinder in space.

float len
Position of end of cylinder.

float radiusx
Length of cylinder.

float radiusy
Radius of x axis.

float ts
Radius of y axis.

float te
Starting point (0.0 - 1.0).

short inside
Ending point (ts - 1.0).

short topcap
1 if we want the inside of the cylinder.

short botcap
1 if top cap is present.

short topin
1 if bottom cap is present.

short botin
1 if top cap is inside, outside otherwise.


Detailed Description

An cylinder object which will adjust its level of detail based on estimated screen space error.


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:52 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999