Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4394 in orxonox.OLD for orxonox/trunk/src/lib/graphics


Ignore:
Timestamp:
May 30, 2005, 2:05:21 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: PhysicsEngine is now aware of the existing fields and interfaces

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  
    2020};
    2121
    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*/
    2328class ParticleEngine : public BaseObject {
    2429
     
    4853 private:
    4954  ParticleEngine(void);
    50   static ParticleEngine* singletonRef;
     55  static ParticleEngine* singletonRef;        //!< The reference to the engine.
    5156
    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.
    5459
    55   tList<ParticleConnection>* connectionList;
     60  tList<ParticleConnection>* connectionList;  //!< A list of Connections between Systems and Emitters.
    5661};
    5762
  • orxonox/trunk/src/lib/graphics/particles/particle_system.h

    r4381 r4394  
    5757};
    5858
    59 //! A class to handle particle Systems
     59//! A class to handle ParticleSystems
    6060class ParticleSystem : public PhysicsInterface {
    61   friend class ParticleEmitter;
    6261
    6362 public:
     
    10099  virtual void applyField(Field* field, float dt);
    101100
     101  void addParticle(const Vector& position, const Vector& velocity, unsigned int data = 0);
     102
    102103  void tick(float dt);
    103104  void draw(void) const;
     
    132133
    133134  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 
    138136};
    139137
Note: See TracChangeset for help on using the changeset viewer.