source:
orxonox.OLD/trunk/src/lib/particles/sprite_particles.h
@
6683
Last change on this file since 6683 was 6626, checked in by bensch, 19 years ago | |
---|---|
File size: 828 bytes |
Rev | Line | |
---|---|---|
[4597] | 1 | /*! |
[6623] | 2 | * @file sprite_particles.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 | |
[5446] | 23 | void setMaterialTexture(const char* textureFile); |
[3245] | 24 | |
[4836] | 25 | /** @returns the Material that lies on this particles */ |
[6621] | 26 | inline const Material* getMaterial() const { return &this->material; }; |
[4338] | 27 | |
[4746] | 28 | virtual void draw() const; |
[3931] | 29 | |
[6621] | 30 | private: |
31 | void init(); | |
[3938] | 32 | |
[6621] | 33 | private: |
34 | Material material; //!< A Material for all the Particles. | |
[1853] | 35 | }; |
36 | ||
[6621] | 37 | #endif /* _SPRITE_PARTICLE_SYSTEM_H */ |
Note: See TracBrowser
for help on using the repository browser.