Changeset 6825 in orxonox.OLD for trunk/src/lib/particles/box_emitter.h
- Timestamp:
- Jan 29, 2006, 1:07:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/box_emitter.h
r6823 r6825 9 9 #include "particle_emitter.h" 10 10 11 #define BOX_EMITTER_DEFAULT_SIZE Vector(1.0f, 1.0f, 1.0f) 12 11 13 //! A class to handle an Emitter. 12 14 class BoxEmitter : public ParticleEmitter … … 14 16 friend class ParticleSystem; 15 17 public: 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); 17 22 BoxEmitter(const TiXmlElement* root); 18 23 virtual ~BoxEmitter(); … … 23 28 void setSize(const Vector& size) { this->setSize(size.x, size.y, size.z); }; 24 29 30 protected: 25 31 virtual void emitParticles(unsigned int count) const; 26 32
Note: See TracChangeset
for help on using the changeset viewer.