source:
orxonox.OLD/trunk/src/world_entities/particles/model_particles.h
| Last change on this file was 9869, checked in by bensch, 19 years ago | |
|---|---|
| File size: 868 bytes | |
| Rev | Line | |
|---|---|---|
| [4597] | 1 | /*! |
| [6629] | 2 | * @file model_particles.h |
| [3329] | 3 | |
| [3245] | 4 | */ |
| [1853] | 5 | |
| [6629] | 6 | #ifndef _MODEL_PARTICLE_SYSTEM_H |
| 7 | #define _MODEL_PARTICLE_SYSTEM_H | |
| [1853] | 8 | |
| [6621] | 9 | #include "particle_system.h" |
| 10 | #include "material.h" | |
| [4377] | 11 | |
| [6621] | 12 | //! A class to handle ParticleSystems |
| [6629] | 13 | class ModelParticles : public ParticleSystem |
| [4597] | 14 | { |
| [9715] | 15 | ObjectListDeclaration(ModelParticles); |
| [9686] | 16 | |
| [6621] | 17 | public: |
| [6629] | 18 | ModelParticles(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT); |
| 19 | ModelParticles(const TiXmlElement* root); | |
| 20 | virtual ~ModelParticles(); | |
| [3930] | 21 | |
| [6512] | 22 | virtual void loadParams(const TiXmlElement* root); |
| [4602] | 23 | |
| [7221] | 24 | void setMaterialTexture(const std::string& textureFile); |
| [3245] | 25 | |
| [4836] | 26 | /** @returns the Material that lies on this particles */ |
| [6621] | 27 | inline const Material* getMaterial() const { return &this->material; }; |
| [4338] | 28 | |
| [4746] | 29 | virtual void draw() const; |
| [3931] | 30 | |
| [6621] | 31 | private: |
| 32 | void init(); | |
| [3938] | 33 | |
| [6621] | 34 | private: |
| 35 | Material material; //!< A Material for all the Particles. | |
| [1853] | 36 | }; |
| 37 | ||
| [6629] | 38 | #endif /* _MODEL_PARTICLE_SYSTEM_H */ |
Note: See TracBrowser
for help on using the repository browser.










