Contains some specifications and methods used for rendering cables.
#include <CInternalCable.h>
|
| SCableRenderSpec (int iNumFaces, int iNumElements, double dDrawDiameter) |
|
| ~SCableRenderSpec () |
| The destructor frees allocated memory.
|
|
void | Update (int iElement, const double *adElPosA, const double *adElPosB, const double *adDirection, double dL0) |
|
|
double | dDeltaTheta |
|
double * | adTheta |
|
double * | adSinTheta |
|
double * | adCosTheta |
|
double | dTextureScale |
|
double * | adCirclePos |
|
double * | adFacePosNormal |
|
double * | adTextureCoordU |
|
double * | adTextureCoordV |
|
int | iNumRenderEdges |
|
double | dDrawDiam |
|
int * | aiIndex |
|
int | iSizeIndexBuffer |
|
◆ SCableRenderSpec()
SCableRenderSpec::SCableRenderSpec |
( |
int |
iNumFaces, |
|
|
int |
iNumElements, |
|
|
double |
dDrawDiameter |
|
) |
| |
|
inline |
The constructor allocates memory and initializes data structures that are not updated at every rendering.
- Parameters
-
[in] | iNumFaces | The number of faces to draw |
[in] | iNumElements | The number of cable elements |
[in] | dDrawDiameter | The diameter to draw the cable |
◆ Update()
void SCableRenderSpec::Update |
( |
int |
iElement, |
|
|
const double * |
adElPosA, |
|
|
const double * |
adElPosB, |
|
|
const double * |
adDirection, |
|
|
double |
dL0 |
|
) |
| |
|
inline |
Updates the data structures belonging to the end of one element forthe next rendering.
- Parameters
-
[in] | iElement | The index of the element to update. |
[in] | adElPosA | The position of end A of the element. |
[in] | adElPosB | The position of end B of the element. |
[in] | adDirection | The direction of the element. |
[in] | dL0 | The length of the element. |
The documentation for this struct was generated from the following file: