source:
orxonox.OLD/trunk/src/lib/particles/model_particles.h
@
6921
Last change on this file since 6921 was 6629, checked in by bensch, 19 years ago | |
---|---|
File size: 819 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 | { |
[6621] | 15 | public: |
[6629] | 16 | ModelParticles(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT); |
17 | ModelParticles(const TiXmlElement* root); | |
18 | virtual ~ModelParticles(); | |
[3930] | 19 | |
[6512] | 20 | virtual void loadParams(const TiXmlElement* root); |
[4602] | 21 | |
[5446] | 22 | void setMaterialTexture(const char* textureFile); |
[3245] | 23 | |
[4836] | 24 | /** @returns the Material that lies on this particles */ |
[6621] | 25 | inline const Material* getMaterial() const { return &this->material; }; |
[4338] | 26 | |
[4746] | 27 | virtual void draw() const; |
[3931] | 28 | |
[6621] | 29 | private: |
30 | void init(); | |
[3938] | 31 | |
[6621] | 32 | private: |
33 | Material material; //!< A Material for all the Particles. | |
[1853] | 34 | }; |
35 | ||
[6629] | 36 | #endif /* _MODEL_PARTICLE_SYSTEM_H */ |
Note: See TracBrowser
for help on using the repository browser.