Abstract class defining the interface to be implemented by particle affectors.
More...
|
| ParticleAffector (ParticleSystem *parent) |
|
virtual | ~ParticleAffector () |
| Virtual destructor essential. More...
|
|
virtual void | _affectParticles (ParticleSystem *pSystem, Real timeElapsed)=0 |
| Method called to allow the affector to 'do it's stuff' on all active particles in the system. More...
|
|
virtual void | _initParticle (Particle *pParticle) |
| Method called to allow the affector to initialize all newly created particles in the system. More...
|
|
virtual void | copyParametersTo (StringInterface *dest) const |
| Method for copying this object's parameters to another object. More...
|
|
ParamDictionary * | getParamDictionary (void) |
| Retrieves the parameter dictionary for this class. More...
|
|
const ParamDictionary * | getParamDictionary (void) const |
|
virtual String | getParameter (const String &name) const |
| Generic parameter retrieval method. More...
|
|
const ParameterList & | getParameters (void) const |
| Retrieves a list of parameters valid for this object. More...
|
|
const String & | getType (void) const |
| Returns the name of the type of affector. More...
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More...
|
|
void * | operator new[] (size_t sz) |
|
virtual bool | setParameter (const String &name, const String &value) |
| Generic parameter setting method. More...
|
|
virtual void | setParameterList (const NameValuePairList ¶mList) |
| Generic multiple parameter setting method. More...
|
|
Abstract class defining the interface to be implemented by particle affectors.
- Because there are so many types of affectors you could use, OGRE chooses not to dictate the available types. It comes with some in-built, but allows plugins or applications to extend the affector types available. This is done by subclassing ParticleAffector to have the appropriate emission behaviour you want, and also creating a subclass of ParticleAffectorFactory which is responsible for creating instances of your new affector type. You register this factory with the ParticleSystemManager using addAffectorFactory, and from then on affectors of this type can be created either from code or through text particle scripts by naming the type.
- This same approach is used for ParticleEmitters (which are the source of particles in a system). This means that OGRE is particularly flexible when it comes to creating particle system effects, with literally infinite combinations of affector and affector types, and parameters within those types.