Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6623 in orxonox.OLD for trunk/src/lib/particles/particle_system.h


Ignore:
Timestamp:
Jan 20, 2006, 12:54:20 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: particle Systems and Emitters are loaded and cleaned up nicely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/particle_system.h

    r6621 r6623  
    5858 public:
    5959  ParticleSystem(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT);
    60   ParticleSystem(const TiXmlElement* root);
    6160  virtual ~ParticleSystem();
    6261
    6362  void init();
    6463  virtual void loadParams(const TiXmlElement* root);
     64  void loadEmitters(const TiXmlElement* root);
    6565
    66   void setMaterial(Material* material);
    67   void setMaterialTexture(const char* textureFile);
    68   void setModel(const char* modelName = NULL);
    6966  void setLifeSpan(float lifeSpan, float randomLifeSpan = 0.0);
    7067  void setConserve(float conserve);
     
    7673  void setColor(float lifeCycleTime, float red, float green, float blue, float alpha);
    7774
    78   /** @returns the Material that lies on this particles */
    79   inline const Material* getMaterial() const { return this->material; };
    8075  /** @returns the lifespan of the particles */
    8176  inline float getLifeSpan() const { return this->lifeSpan; };
     
    9287
    9388  void addEmitter(ParticleEmitter* emitter);
    94   void addEmitterXML(const TiXmlElement* emitterRoot);
    9589  void removeEmitter(ParticleEmitter* emitter);
    9690
     
    115109  int               maxCount;            //!< The maximum count of Particles.
    116110  int               count;               //!< The current count of Particles.
    117   Material*         material;            //!< A Material for all the Particles.
    118111  Particle*         particles;           //!< A list of particles of this System.
    119112  Particle*         deadList;            //!< A list of dead Particles in the System.
    120 
    121   GLuint*           glID;                //!< A List of different gl-List-ID's
    122   GLuint            dialectCount;        //!< How many different types of particles are there in the Particle System
    123113
    124114  std::list<ParticleEmitter*> emitters;  //!< The Emitters that do emit into this System.
Note: See TracChangeset for help on using the changeset viewer.