Line | |
---|
1 | /*! |
---|
2 | * @file dot_particles.h |
---|
3 | |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _DOT_PARTICLE_SYSTEM_H |
---|
7 | #define _DOT_PARTICLE_SYSTEM_H |
---|
8 | |
---|
9 | #include "particle_system.h" |
---|
10 | #include "material.h" |
---|
11 | |
---|
12 | //! A class to handle ParticleSystems |
---|
13 | class DotParticles : public ParticleSystem |
---|
14 | { |
---|
15 | ObjectListDeclaration(DotParticles); |
---|
16 | |
---|
17 | public: |
---|
18 | DotParticles(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT); |
---|
19 | DotParticles(const TiXmlElement* root); |
---|
20 | virtual ~DotParticles(); |
---|
21 | |
---|
22 | virtual void loadParams(const TiXmlElement* root); |
---|
23 | |
---|
24 | /** @returns the Material that lies on this particles */ |
---|
25 | inline const Material* getMaterial() const { return &this->material; }; |
---|
26 | |
---|
27 | virtual void draw() const; |
---|
28 | |
---|
29 | private: |
---|
30 | void init(); |
---|
31 | |
---|
32 | private: |
---|
33 | Material material; //!< A Material for all the Particles. |
---|
34 | }; |
---|
35 | |
---|
36 | #endif /* _DOT_PARTICLE_SYSTEM_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.