Changeset 4274 in orxonox.OLD for orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.h
- Timestamp:
- May 22, 2005, 10:21:00 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_emitter.h
r4178 r4274 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); … … 39 42 40 43 private: 44 EMITTER_TYPE type; //!< The type of emitter this is 45 float emitterSize; //!< The size of the emitter (not for EMITTER_DOT) 41 46 Vector direction; //!< emition direction 42 47 float angle; //!< max angle from the direction of the emitter
Note: See TracChangeset
for help on using the changeset viewer.