![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Class representing a single particle instance. More...
#include <OgreParticle.h>
Inheritance diagram for Ogre::Particle:Public Types | |
| enum | ParticleType { Visual , Emitter } |
| Type of particle. More... | |
Public Member Functions | |
| Particle () | |
| void | _notifyOwner (ParticleSystem *owner) |
| Internal method for notifying the particle of it's owner. | |
| void | _notifyVisualData (ParticleVisualData *vis) |
| Internal method for notifying the particle of it's optional visual data. | |
| Real | getOwnHeight (void) const |
| Retrieves the particle's personal width, if hasOwnDimensions is true. | |
| Real | getOwnWidth (void) const |
| Retrieves the particle's personal width, if hasOwnDimensions is true. | |
| const Radian & | getRotation (void) const |
| ParticleVisualData * | getVisualData (void) const |
| bool | hasOwnDimensions (void) const |
| Returns true if this particle deviates from the ParticleSystem's default dimensions (i.e. | |
| void | resetDimensions (void) |
| Utility method to reset this particle. | |
| void | setDimensions (Real width, Real height) |
| Sets the width and height for this particle. | |
| void | setRotation (const Radian &rad) |
| Sets the current rotation. | |
Public Attributes | |
| ColourValue | mColour |
| Current colour. | |
| Vector3 | mDirection |
| Direction (and speed) | |
| Real | mHeight |
| Personal height if mOwnDimensions == true. | |
| bool | mOwnDimensions |
| Does this particle have it's own dimensions? | |
| ParticleType | mParticleType |
| Determines the type of particle. | |
| Vector3 | mPosition |
| World position. | |
| Radian | mRotation |
| Current rotation value. | |
| Radian | mRotationSpeed |
| Speed of rotation in radians/sec. | |
| Real | mTimeToLive |
| Time to live, number of seconds left of particles natural life. | |
| Real | mTotalTimeToLive |
| Total Time to live, number of seconds of particles natural life. | |
| Real | mWidth |
| Personal width if mOwnDimensions == true. | |
Class representing a single particle instance.
|
inline |
Sets the width and height for this particle.
Returns true if this particle deviates from the ParticleSystem's default dimensions (i.e.
if the particle::setDimensions method has been called for this instance).
Retrieves the particle's personal width, if hasOwnDimensions is true.
Retrieves the particle's personal width, if hasOwnDimensions is true.
| void Ogre::Particle::_notifyOwner | ( | ParticleSystem * | owner | ) |
Internal method for notifying the particle of it's owner.
|
inline |
Internal method for notifying the particle of it's optional visual data.
|
inline |
| bool Ogre::Particle::mOwnDimensions |
Does this particle have it's own dimensions?
| Real Ogre::Particle::mWidth |
Personal width if mOwnDimensions == true.
| Real Ogre::Particle::mHeight |
Personal height if mOwnDimensions == true.
| Radian Ogre::Particle::mRotation |
Current rotation value.
| Vector3 Ogre::Particle::mPosition |
World position.
| Vector3 Ogre::Particle::mDirection |
Direction (and speed)
| ColourValue Ogre::Particle::mColour |
Current colour.
| Real Ogre::Particle::mTimeToLive |
Time to live, number of seconds left of particles natural life.
| Real Ogre::Particle::mTotalTimeToLive |
Total Time to live, number of seconds of particles natural life.
| Radian Ogre::Particle::mRotationSpeed |
Speed of rotation in radians/sec.
| ParticleType Ogre::Particle::mParticleType |
Determines the type of particle.