Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6825 in orxonox.OLD for trunk/src/lib/particles/box_emitter.h


Ignore:
Timestamp:
Jan 29, 2006, 1:07:01 PM (19 years ago)
Author:
bensch
Message:

trunk: new interface to ParticleEmitters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/box_emitter.h

    r6823 r6825  
    99#include "particle_emitter.h"
    1010
     11#define BOX_EMITTER_DEFAULT_SIZE Vector(1.0f, 1.0f, 1.0f)
     12
    1113//! A class to handle an Emitter.
    1214class BoxEmitter : public ParticleEmitter
     
    1416  friend class ParticleSystem;
    1517public:
    16   BoxEmitter(const Vector& size);
     18  BoxEmitter(const Vector& size = BOX_EMITTER_DEFAULT_SIZE,
     19             float emissionRate = PARTICLE_EMITTER_DEFAULT_EMISSION_RATE,
     20             float velocity = PARTICLE_EMITTER_DEFAULT_VELOCITY,
     21             float angle = PARTICLE_EMITTER_DEFAULT_SPREAD);
    1722  BoxEmitter(const TiXmlElement* root);
    1823  virtual ~BoxEmitter();
     
    2328  void setSize(const Vector& size) { this->setSize(size.x, size.y, size.z); };
    2429
     30protected:
    2531  virtual void emitParticles(unsigned int count) const;
    2632
Note: See TracChangeset for help on using the changeset viewer.