Changeset 4338 in orxonox.OLD for orxonox/trunk/src/lib/graphics/particles/particle_emitter.h
- Timestamp:
- May 27, 2005, 9:16:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/particles/particle_emitter.h
r4176 r4338 13 13 class ParticleSystem; 14 14 15 typedef enum EMITTER_TYPE {EMITTER_DOT, 16 EMITTER_PLANE, 17 EMITTER_SPHERE, 18 EMITTER_CUBE}; 15 //! The form of the Emitter to emit from 16 typedef enum EMITTER_TYPE {EMITTER_DOT = 1, 17 EMITTER_PLANE = 2, 18 EMITTER_SPHERE= 4, 19 EMITTER_CUBE = 8}; 19 20 20 21 //! A default singleton class. … … 32 33 33 34 /* controlling the behavour: these can be used as Animation interfaces */ 35 void setType(EMITTER_TYPE type); 36 void setSize(float emitterSize); 34 37 void setEmissionRate(float emissionRate); 35 38 void setSpread(float angle, float randomAngle = 0.0); 36 void setVelocity(float velocity, float randomVelocity = 0.0); 39 void setEmissionVelocity(float velocity, float randomVelocity = 0.0); 40 41 /** \returns the type of the emitter */ 42 inline EMITTER_TYPE getType(void) const { return this->type; }; 43 /** \returns the Size of the emitter */ 44 inline float getSize(void) const { return this->emitterSize; }; 45 /** \returns the emissionRate */ 46 inline float getEmissionRate(void) const { return this->emissionRate; }; 47 /** \returns the SpreadAngle of the emitter */ 48 inline float getSpread(void) { return this->angle; }; 49 /** \returns the EmissionVelocity of the emitter */ 50 inline float getEmissionVelocity(void) { return this->velocity; }; 37 51 38 52 void debug(void); 39 53 40 54 private: 55 EMITTER_TYPE type; //!< The type of emitter this is 56 float emitterSize; //!< The size of the emitter (not for EMITTER_DOT) 41 57 Vector direction; //!< emition direction 42 58 float angle; //!< max angle from the direction of the emitter
Note: See TracChangeset
for help on using the changeset viewer.