Changeset 4217 in orxonox.OLD for orxonox/branches/movie_player/src/lib/graphics/particles/particle_system.h
- Timestamp:
- May 18, 2005, 11:27:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/movie_player/src/lib/graphics/particles/particle_system.h
r3966 r4217 10 10 #include "vector.h" 11 11 12 #define PARTICLE_DOT_MASK 0x00001 13 #define PARTICLE_SPRITE_MASK 0x00010 14 #define PARTICLE_MODEL_MASK 0x00100 15 #define PARTICLE_WORDL_ENTITY_MASK 0x01000 16 #define PARTICLE_MULTI_MASK 0x10000 12 #define PARTICLE_DOT_MASK 0x000001 13 #define PARTICLE_SPARK_MASK 0x000010 14 #define PARTICLE_SPRITE_MASK 0x000100 15 #define PARTICLE_MODEL_MASK 0x001000 16 #define PARTICLE_WORDL_ENTITY_MASK 0x010000 17 #define PARTICLE_MULTI_MASK 0x100000 17 18 18 19 //! An enumerator for the different types of particles. 19 20 typedef enum PARTICLE_TYPE {PARTICLE_DOT = PARTICLE_DOT_MASK, 21 PARTICLE_SPARK = PARTICLE_SPARK_MASK, 20 22 PARTICLE_SPRITE = PARTICLE_SPRITE_MASK, 21 23 PARTICLE_MULTI_SPRITE = PARTICLE_SPRITE_MASK | PARTICLE_MULTI_MASK, … … 42 44 float radiusIt; //!< The difference of the Size per second. 43 45 46 PARTICLE_TYPE type; 47 44 48 Particle* next; //!< pointer to the next particle in the List. (NULL if no preceding one) 45 49 }; … … 50 54 51 55 public: 52 ParticleSystem(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT, PARTICLE_TYPE type = PARTICLE_DEFAULT_TYPE); 56 ParticleSystem(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT, 57 PARTICLE_TYPE type = PARTICLE_DEFAULT_TYPE); 53 58 virtual ~ParticleSystem(); 54 59 void setName(const char* name); … … 59 64 void setInheritSpeed(float value); 60 65 void setLifeSpan(float lifeSpan, float randomLifeSpan = 0.0); 61 void setRadius(float startRadius, float endRadius, float randomStartRadius = 0.0, float randomEndRadius = 0.0); 66 void setRadius(float startRadius, float endRadius, 67 float randomStartRadius = 0.0, float randomEndRadius = 0.0); 62 68 void setConserve(float conserve); 63 69 void setMass(float mass, float randomMass); 64 70 65 71 void tick(float dt); 66 void draw( void);72 void draw(float dt); 67 73 68 74 void debug(void); … … 88 94 Material* material; //!< A Material for all the Particles. 89 95 Particle* particles; //!< A list of particles of this System. 96 Particle* deadList; //!< A list of dead Particles in the System. 90 97 91 98 GLuint* glID; //!< A List of different gl-List-ID's
Note: See TracChangeset
for help on using the changeset viewer.