Apart from fixing some common emitter settings, this class uses an incredibly dirty hack to make different emitter types available to the ParticleSystem.
|
Public Types |
| typedef A< P, Heir > | ActionP |
| typedef G3D::RenderDevice::BlendFunc | BFunc |
typedef std::pair< BFunc,
BFunc > | BlendMode |
| typedef E | EmissionP |
| typedef Heir | Heir |
| typedef I< P, Heir > | InitP |
| typedef P | Particle |
typedef util::SmartPointer<
util::Iterator< P >, util::DestructiveCopy > | ParticleIt |
| typedef RenderP::Renderer | Renderer |
typedef BillboardRenderIM<
P, Heir > | RenderP |
typedef std::pair< G3D::Vector2,
G3D::Vector2 > | TexCoords |
Public Member Functions |
| void | clear () |
| | sets the number of active particles to 0
|
| void | emit (unsigned int cnt) |
| | emits the given number of particles
|
| void | finishEmitter (Emitter *, Renderer &) |
| BlendMode | getBlendMode () const |
| unsigned int | getMaxParticles () const |
| unsigned int | getParticleCount () const |
| ParticleIt | getParticles () |
| | accesses the active particles
|
| G3D::TextureRef | getTexture () const |
| TexCoords | getTextureCoords () const |
| bool | isParticleSortingEnabled () const |
| | ParticleEmitter () |
| void | prepareEmitter (Emitter *, Renderer &) |
| void | process (const float &) |
| void | quad (Renderer &rd, G3D::Vector3 verts[], G3D::Vector2 tcoords[], const G3D::Color4 &color) |
| void | render (Emitter *, Renderer &, Particle &) |
| void | render (Renderer &, bool standAlone=true) |
| | renders this emitter's active particles
|
| virtual void | render (G3D::RenderDevice *&, bool)=0 |
| void | render (Renderer &, bool) |
| void | setBlendMode (const BlendMode &) |
| void | setParticleSortingEnabled (bool) |
| | enables or disables particle sorting
|
| void | setTexture (const G3D::TextureRef &) |
| void | setTextureCoords (const TexCoords &) |
Static Public Member Functions |
| static void | beginRender (Renderer &) |
| static void | endRender (Renderer &rd) |
Static Public Attributes |
| static const BlendMode | BM_GLOW |
| | predefined BlendMode for glowing particles
|
| static const BlendMode | BM_NORMAL |
| | predefined BlendMode for smoky particles
|
| static const BlendMode | BM_OFF |
| | predefined BlendMode for no alpha blending
|