#include <ddgcylinder.h>
Class diagram for ddgCylinder:
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. |