Scene Component Modifier. More...
#include <deComponentModifier.h>
Public Member Functions | |
Constructors and Destructors | |
| deComponentModifier (int index) | |
| Creates a new modifier. | |
| ~deComponentModifier () | |
| Cleans up the modifier. | |
Management | |
| int | GetModifierIndex () const |
| Retrieves the index of the tracked render modifier. | |
| deSkin * | GetSkin () const |
| Retrieves the skin to set or NULL if no skin replacement has to be done. | |
| void | SetSkin (deSkin *skin) |
| Sets the skin to set or NULL if no skin replacement has to be done. | |
| deEffect * | GetEffect () const |
| Retrieves the effect to enable or NULL if no effect enabling has to be done. | |
| void | SetEffect (deEffect *effect) |
| Sets the effect to enable or NULL if no effect enabling has to be done. | |
Scene Component Modifier.
Components can use the render modifiers set in the rendering camera object to adjust their skin and effects on the fly. An enabled render modifier alters the component before rendering. Render modifiers with a higher index overwrite the changes made by lower ranking render modifiers. The following modifications can be done:
| deComponentModifier::deComponentModifier | ( | int | index ) |
Creates a new modifier.
| deComponentModifier::~deComponentModifier | ( | ) |
Cleans up the modifier.
| deEffect* deComponentModifier::GetEffect | ( | ) | const [inline] |
Retrieves the effect to enable or NULL if no effect enabling has to be done.
| int deComponentModifier::GetModifierIndex | ( | ) | const [inline] |
Retrieves the index of the tracked render modifier.
| deSkin* deComponentModifier::GetSkin | ( | ) | const [inline] |
Retrieves the skin to set or NULL if no skin replacement has to be done.
| void deComponentModifier::SetEffect | ( | deEffect * | effect ) |
Sets the effect to enable or NULL if no effect enabling has to be done.
| void deComponentModifier::SetSkin | ( | deSkin * | skin ) |
Sets the skin to set or NULL if no skin replacement has to be done.
1.7.2