Changeset 6623 in orxonox.OLD for trunk/src/lib/particles/particle_system.h
- Timestamp:
- Jan 20, 2006, 12:54:20 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_system.h
r6621 r6623 58 58 public: 59 59 ParticleSystem(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT); 60 ParticleSystem(const TiXmlElement* root);61 60 virtual ~ParticleSystem(); 62 61 63 62 void init(); 64 63 virtual void loadParams(const TiXmlElement* root); 64 void loadEmitters(const TiXmlElement* root); 65 65 66 void setMaterial(Material* material);67 void setMaterialTexture(const char* textureFile);68 void setModel(const char* modelName = NULL);69 66 void setLifeSpan(float lifeSpan, float randomLifeSpan = 0.0); 70 67 void setConserve(float conserve); … … 76 73 void setColor(float lifeCycleTime, float red, float green, float blue, float alpha); 77 74 78 /** @returns the Material that lies on this particles */79 inline const Material* getMaterial() const { return this->material; };80 75 /** @returns the lifespan of the particles */ 81 76 inline float getLifeSpan() const { return this->lifeSpan; }; … … 92 87 93 88 void addEmitter(ParticleEmitter* emitter); 94 void addEmitterXML(const TiXmlElement* emitterRoot);95 89 void removeEmitter(ParticleEmitter* emitter); 96 90 … … 115 109 int maxCount; //!< The maximum count of Particles. 116 110 int count; //!< The current count of Particles. 117 Material* material; //!< A Material for all the Particles.118 111 Particle* particles; //!< A list of particles of this System. 119 112 Particle* deadList; //!< A list of dead Particles in the System. 120 121 GLuint* glID; //!< A List of different gl-List-ID's122 GLuint dialectCount; //!< How many different types of particles are there in the Particle System123 113 124 114 std::list<ParticleEmitter*> emitters; //!< The Emitters that do emit into this System.
Note: See TracChangeset
for help on using the changeset viewer.