#include <ddgtransform.h>
Class diagram for ddgTransform:
Public Members | |||
ddgTransform (void) | |||
Constructor. | |||
ddgTransform (ddgVector3 *t, ddgVector3 *s = NULL, ddgVector3 *r = NULL, ddgNode *d = NULL) | |||
Constructor. | |||
void | translate ( ddgVector3 *t ) | ||
Set translation. | |||
void | scale ( ddgVector3 *s ) | ||
Set scale. | |||
void | rotate ( ddgVector3 *r ) | ||
Set rotation. | |||
void | cylindricalBillBoard ( void ) | ||
Set bill board forces object to face the camera allows rotation about Y axis only. | |||
void | sphericalBillBoard ( void ) | ||
Set bill board forces object to face the camera.. | |||
bool | draw ( ddgContext *c ) | ||
Render this node. More... | |||
ddgVector3 | _translate | ||
The amount to translate world space by. | |||
ddgVector3 | _scale | ||
The amount to scale world space by. | |||
ddgVector3 | _rotate | ||
The amount to rotate world space by in degrees about x, y and z axis. | |||
bool | fTranslate | ||
Flag to indicate if translation is used. | |||
bool | fScale | ||
Flag to indicate if scaling is used. | |||
bool | fRotate | ||
Flag to indicate if rotation is used. | |||
bool | fCylindricalBillBoard | ||
Cylindrical mode always faces viewer in XZ plane. | |||
bool | fSphericalBillBoard | ||
Spherical mode always faces viewer in all dimensions. |
It affects all node which are managed by the transform. $TODO: we should be updating the ctx for this class, or else transformed nodes will not be able to correctly determine visibility etc.
bool ddgTransform::draw (ddgContext * c) [virtual]
|