OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
This plugin subclass of ParticleAffector allows you to alter the rotation of particles. More...
#include <OgreRotationAffector2.h>
Public Member Functions | |
RotationAffector2 () | |
void | _cloneFrom (const ParticleAffector2 *original) override |
const Radian & | getRotationRangeEnd () const |
Gets the maximum rotation of particles to be emitted. More... | |
const Radian & | getRotationRangeStart () const |
Gets the minimum rotation of particles to be emitted. More... | |
const Radian & | getRotationSpeedRangeEnd () const |
Gets the maximum rotation speed of particles to be emitted. More... | |
const Radian & | getRotationSpeedRangeStart () const |
Gets the minimum rotation speed of particles to be emitted. More... | |
String | getType () const override |
Returns the name of the type of affector. More... | |
void | initEmittedParticles (ParticleCpuData cpuData, const EmittedParticle *newHandles, size_t numParticles) const override |
Initializes particles Can be called by multiple threads. More... | |
bool | needsInitialization () const override |
Returns true if initEmittedParticles() must be called on a particle that has been emitted. More... | |
void | run (ParticleCpuData cpuData, size_t numParticles, ArrayReal timeSinceLast) const override |
void | setRotationRangeEnd (const Radian &angle) |
Sets the maximum rotation angle of particles to be emitted. More... | |
void | setRotationRangeStart (const Radian &angle) |
Sets the minimum rotation angle of particles to be emitted. More... | |
void | setRotationSpeedRangeEnd (const Radian &angle) |
Sets the maximum rotation speed of particles to be emitted. More... | |
void | setRotationSpeedRangeStart (const Radian &angle) |
Sets the minimum rotation speed of particles to be emitted. More... | |
bool | wantsRotation () const override |
Returns true if ParticleSystemDef should default to something else other than ParticleRotationType::None. More... | |
Public Member Functions inherited from Ogre::ParticleAffector2 | |
virtual void | oneTimeInit () |
Public Member Functions inherited from Ogre::StringInterface | |
StringInterface () | |
virtual | ~StringInterface () |
Virtual destructor, see Effective C++. More... | |
virtual void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. More... | |
ParamDictionary * | getParamDictionary () |
Retrieves the parameter dictionary for this class. More... | |
const ParamDictionary * | getParamDictionary () const |
virtual String | getParameter (const String &name) const |
Generic parameter retrieval method. More... | |
const ParameterList & | getParameters () const |
Retrieves a list of parameters valid for this object. More... | |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Ogre::StringInterface | |
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. More... | |
This plugin subclass of ParticleAffector allows you to alter the rotation of particles.
Ogre::RotationAffector2::RotationAffector2 | ( | ) |
|
overridevirtual |
Implements Ogre::ParticleAffector2.
const Radian& Ogre::RotationAffector2::getRotationRangeEnd | ( | ) | const |
Gets the maximum rotation of particles to be emitted.
const Radian& Ogre::RotationAffector2::getRotationRangeStart | ( | ) | const |
Gets the minimum rotation of particles to be emitted.
const Radian& Ogre::RotationAffector2::getRotationSpeedRangeEnd | ( | ) | const |
Gets the maximum rotation speed of particles to be emitted.
const Radian& Ogre::RotationAffector2::getRotationSpeedRangeStart | ( | ) | const |
Gets the minimum rotation speed of particles to be emitted.
|
overridevirtual |
Returns the name of the type of affector.
Implements Ogre::ParticleAffector2.
|
overridevirtual |
Initializes particles Can be called by multiple threads.
Reimplemented from Ogre::ParticleAffector2.
|
overridevirtual |
Returns true if initEmittedParticles() must be called on a particle that has been emitted.
Reimplemented from Ogre::ParticleAffector2.
|
overridevirtual |
Implements Ogre::ParticleAffector2.
void Ogre::RotationAffector2::setRotationRangeEnd | ( | const Radian & | angle | ) |
Sets the maximum rotation angle of particles to be emitted.
void Ogre::RotationAffector2::setRotationRangeStart | ( | const Radian & | angle | ) |
Sets the minimum rotation angle of particles to be emitted.
void Ogre::RotationAffector2::setRotationSpeedRangeEnd | ( | const Radian & | angle | ) |
Sets the maximum rotation speed of particles to be emitted.
void Ogre::RotationAffector2::setRotationSpeedRangeStart | ( | const Radian & | angle | ) |
Sets the minimum rotation speed of particles to be emitted.
|
overridevirtual |
Returns true if ParticleSystemDef should default to something else other than ParticleRotationType::None.
Reimplemented from Ogre::ParticleAffector2.