Changeset 4394 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- May 30, 2005, 2:05:21 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/particles/particle_engine.h
r4349 r4394 20 20 }; 21 21 22 //! A default singleton class. 22 //! The physicsEngine handles and stores Systems and Emitters. 23 /** 24 It is responsible for driving on the Particles (tick) 25 It draw particles (draw) 26 and it emitts particles into the system 27 */ 23 28 class ParticleEngine : public BaseObject { 24 29 … … 48 53 private: 49 54 ParticleEngine(void); 50 static ParticleEngine* singletonRef; 55 static ParticleEngine* singletonRef; //!< The reference to the engine. 51 56 52 tList<ParticleSystem>* systemList; 53 tList<ParticleEmitter>* emitterList; 57 tList<ParticleSystem>* systemList; //!< A list of Systems handled by the ParticleEngine. 58 tList<ParticleEmitter>* emitterList; //!< A list of Emitters handled by the ParticleEngine. 54 59 55 tList<ParticleConnection>* connectionList; 60 tList<ParticleConnection>* connectionList; //!< A list of Connections between Systems and Emitters. 56 61 }; 57 62 -
orxonox/trunk/src/lib/graphics/particles/particle_system.h
r4381 r4394 57 57 }; 58 58 59 //! A class to handle particleSystems59 //! A class to handle ParticleSystems 60 60 class ParticleSystem : public PhysicsInterface { 61 friend class ParticleEmitter;62 61 63 62 public: … … 100 99 virtual void applyField(Field* field, float dt); 101 100 101 void addParticle(const Vector& position, const Vector& velocity, unsigned int data = 0); 102 102 103 void tick(float dt); 103 104 void draw(void) const; … … 132 133 133 134 GLuint* glID; //!< A List of different gl-List-ID's 134 GLuint dialectCount; //!< How many different types of particles are there in the Particle System 135 136 void addParticle(const Vector& position, const Vector& velocity, unsigned int data = 0); 137 135 GLuint dialectCount; //!< How many different types of particles are there in the Particle System 138 136 }; 139 137
Note: See TracChangeset
for help on using the changeset viewer.