source:
orxonox.OLD/trunk/src/lib/particles/sprite_particles.h
@
6621
Last change on this file since 6621 was 6621, checked in by bensch, 19 years ago | |
---|---|
File size: 890 bytes |
Rev | Line | |
---|---|---|
[4597] | 1 | /*! |
[5039] | 2 | * @file particle_system.h |
[3329] | 3 | |
[3245] | 4 | */ |
[1853] | 5 | |
[6621] | 6 | #ifndef _SPRITE_PARTICLE_SYSTEM_H |
7 | #define _SPRITE_PARTICLE_SYSTEM_H | |
[1853] | 8 | |
[6621] | 9 | #include "particle_system.h" |
10 | #include "material.h" | |
[4377] | 11 | |
[6621] | 12 | //! A class to handle ParticleSystems |
13 | class SpriteParticles : public ParticleSystem | |
[4597] | 14 | { |
[3930] | 15 | |
[6621] | 16 | public: |
17 | SpriteParticles(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT); | |
18 | SpriteParticles(const TiXmlElement* root); | |
19 | virtual ~SpriteParticles(); | |
[3930] | 20 | |
[6512] | 21 | virtual void loadParams(const TiXmlElement* root); |
[4602] | 22 | |
[3930] | 23 | void setMaterial(Material* material); |
[5446] | 24 | void setMaterialTexture(const char* 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 | |
[4746] | 31 | void debug() const; |
[3944] | 32 | |
[6621] | 33 | private: |
34 | void init(); | |
[3938] | 35 | |
[6621] | 36 | private: |
37 | Material material; //!< A Material for all the Particles. | |
[1853] | 38 | }; |
39 | ||
[6621] | 40 | #endif /* _SPRITE_PARTICLE_SYSTEM_H */ |
Note: See TracBrowser
for help on using the repository browser.