![]() |
OGRE-Next 4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
Particle emitter which emits particles randomly from points inside an area (box, sphere, ellipsoid whatever subclasses choose to be). More...
#include <OgreAreaEmitter2.h>
Inheritance diagram for Ogre::AreaEmitter2:Public Member Functions | |
| void | _cloneFrom (const EmitterDefData *original) override |
| Real | getDepth () const |
| Gets the depth (local y size) of the emitter. | |
| Real | getHeight () const |
| Gets the height (local y size) of the emitter. | |
| Real | getWidth () const |
| Gets the width (local x size) of the emitter. | |
| void | setDepth (Real Depth) |
| Sets the depth (local y size) of the emitter. | |
| void | setDirection (const Vector3 &direction) override |
| Overloaded to update the trans. | |
| void | setHeight (Real Height) |
| Sets the height (local y size) of the emitter. | |
| void | setSize (const Vector3 &size) |
| Sets the size of the area from which particles are emitted. | |
| void | setSize (Real x, Real y, Real z) |
| Sets the size of the area from which particles are emitted. | |
| void | setWidth (Real width) |
| Sets the width (local x size) of the emitter. | |
Public Member Functions inherited from Ogre::EmitterDefData | |
| EmitterDefData () | |
| unsigned short | _getEmissionCount (Real timeElapsed) final |
| Override so we don't use it accidentally (we use genEmissionCount() instead). | |
| ParticleEmitter * | asParticleEmitter () |
| ParticleEmitter is a protected base class of EmitterDefData. | |
| const ParticleEmitter * | asParticleEmitter () const |
| uint32 | genEmissionCount (Real timeSinceLast, EmitterInstanceData &instanceData) const |
| Must be called by 1 thread. | |
| const Vector2 & | getInitialDimensions () const |
| virtual void | initEmittedParticles (ParticleCpuData cpuData, const EmittedParticle *newHandles, size_t numParticles)=0 |
| Initializes particles Can be called by multiple threads. | |
| void | setInitialDimensions (const Vector2 &dim) |
Particle emitter which emits particles randomly from points inside an area (box, sphere, ellipsoid whatever subclasses choose to be).
|
overridevirtual |
Reimplemented from Ogre::EmitterDefData.
Reimplemented in Ogre::HollowEllipsoidEmitter2, and Ogre::RingEmitter2.
| Real Ogre::AreaEmitter2::getDepth | ( | ) | const |
Gets the depth (local y size) of the emitter.
| Real Ogre::AreaEmitter2::getHeight | ( | ) | const |
Gets the height (local y size) of the emitter.
| Real Ogre::AreaEmitter2::getWidth | ( | ) | const |
Gets the width (local x size) of the emitter.
| void Ogre::AreaEmitter2::setDepth | ( | Real | Depth | ) |
Sets the depth (local y size) of the emitter.
|
overridevirtual |
| void Ogre::AreaEmitter2::setHeight | ( | Real | Height | ) |
Sets the height (local y size) of the emitter.
| void Ogre::AreaEmitter2::setSize | ( | const Vector3 & | size | ) |
Sets the size of the area from which particles are emitted.
| size | Vector describing the size of the area. The area extends around the center point by half the x, y and z components of this vector. The box is aligned such that it's local Z axis points along it's direction (see setDirection) |
Sets the size of the area from which particles are emitted.
| x,y,z | Individual axis lengths describing the size of the area. The area extends around the center point by half the x, y and z components of this vector. The box is aligned such that it's local Z axis points along it's direction (see setDirection) |
| void Ogre::AreaEmitter2::setWidth | ( | Real | width | ) |
Sets the width (local x size) of the emitter.