This plugin subclass of ParticleAffector allows you to alter the colour of particles.
More...
#include <OgreColourFaderAffector.h>
|
static void | cleanupDictionary () |
| Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g.
|
|
This plugin subclass of ParticleAffector allows you to alter the colour of particles.
◆ ColourFaderAffector()
Ogre::ColourFaderAffector::ColourFaderAffector |
( |
ParticleSystem * |
psys | ) |
|
◆ _affectParticles()
void Ogre::ColourFaderAffector::_affectParticles |
( |
ParticleSystem * |
pSystem, |
|
|
Real |
timeElapsed |
|
) |
| |
|
overridevirtual |
◆ getAlphaAdjust()
float Ogre::ColourFaderAffector::getAlphaAdjust |
( |
| ) |
const |
Gets the alpha adjustment to be made per second to particles.
◆ getBlueAdjust()
float Ogre::ColourFaderAffector::getBlueAdjust |
( |
| ) |
const |
Gets the blue adjustment to be made per second to particles.
◆ getGreenAdjust()
float Ogre::ColourFaderAffector::getGreenAdjust |
( |
| ) |
const |
Gets the green adjustment to be made per second to particles.
◆ getRedAdjust()
float Ogre::ColourFaderAffector::getRedAdjust |
( |
| ) |
const |
Gets the red adjustment to be made per second to particles.
◆ setAdjust()
void Ogre::ColourFaderAffector::setAdjust |
( |
float |
red, |
|
|
float |
green, |
|
|
float |
blue, |
|
|
float |
alpha = 0.0 |
|
) |
| |
Sets the colour adjustment to be made per second to particles.
- Parameters
-
red,green,blue,alpha | Sets the adjustment to be made to each of the colour components per second. These values will be added to the colour of all particles every second, scaled over each frame for a smooth adjustment. |
◆ setAlphaAdjust()
void Ogre::ColourFaderAffector::setAlphaAdjust |
( |
float |
alpha | ) |
|
Sets the alpha adjustment to be made per second to particles.
- Parameters
-
alpha | The adjustment to be made to the colour component per second. This value will be added to the colour of all particles every second, scaled over each frame for a smooth adjustment. |
◆ setBlueAdjust()
void Ogre::ColourFaderAffector::setBlueAdjust |
( |
float |
blue | ) |
|
Sets the blue adjustment to be made per second to particles.
- Parameters
-
blue | The adjustment to be made to the colour component per second. This value will be added to the colour of all particles every second, scaled over each frame for a smooth adjustment. |
◆ setGreenAdjust()
void Ogre::ColourFaderAffector::setGreenAdjust |
( |
float |
green | ) |
|
Sets the green adjustment to be made per second to particles.
- Parameters
-
green | The adjustment to be made to the colour component per second. This value will be added to the colour of all particles every second, scaled over each frame for a smooth adjustment. |
◆ setRedAdjust()
void Ogre::ColourFaderAffector::setRedAdjust |
( |
float |
red | ) |
|
Sets the red adjustment to be made per second to particles.
- Parameters
-
red | The adjustment to be made to the colour component per second. This value will be added to the colour of all particles every second, scaled over each frame for a smooth adjustment. |
◆ msAlphaCmd
◆ msBlueCmd
◆ msGreenCmd
◆ msRedCmd
The documentation for this class was generated from the following file: