28 #ifndef __Particle_H__ 29 #define __Particle_H__ 102 : mParentSystem(0), mVisual(0), mOwnDimensions(false), rotation(0),
104 colour(
ColourValue::White), timeToLive(10), totalTimeToLive(10),
105 rotationSpeed(0), particleType(Visual)
116 void setDimensions(
Real width,
Real height);
132 void setRotation(
const Radian& rad);
148 void resetDimensions(
void);
Real mHeight
Personal height if mOwnDimensions == true.
Radian rotation
Current rotation value.
Real getOwnHeight(void) const
Retrieves the particle's personal width, if hasOwnDimensions is true.
bool mOwnDimensions
Does this particle have it's own dimensions?
Class representing colour.
float Real
Software floating point type.
bool hasOwnDimensions(void) const
Returns true if this particle deviates from the ParticleSystem's default dimensions (i...
ParticleSystem * mParentSystem
Parent ParticleSystem.
ColourValue colour
Current colour.
Standard 3-dimensional vector.
Real mWidth
Personal width if mOwnDimensions == true.
Real timeToLive
Time to live, number of seconds left of particles natural life.
ParticleVisualData * mVisual
Additional visual data you might want to associate with the Particle.
Abstract class containing any additional data required to be associated with a particle to perform th...
ParticleVisualData * getVisualData(void) const
Get the optional visual data associated with the class.
Class representing a single particle instance.
Vector3 position
World position.
This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info...
ParticleType
Type of particle.
Vector3 direction
Direction (and speed)
Real getOwnWidth(void) const
Retrieves the particle's personal width, if hasOwnDimensions is true.
virtual ~ParticleVisualData()
Real totalTimeToLive
Total Time to live, number of seconds of particles natural life.
Class defining particle system based special effects.
void _notifyVisualData(ParticleVisualData *vis)
Internal method for notifying the particle of it's optional visual data.
const Radian & getRotation(void) const
ParticleType particleType
Determines the type of particle.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Radian rotationSpeed
Speed of rotation in radians/sec.
Wrapper class which indicates a given angle value is in Radians.