source:
orxonox.OLD/trunk/src/lib/particles/dot_particles.h
@
7001
Last change on this file since 7001 was 6652, checked in by bensch, 19 years ago | |
---|---|
File size: 804 bytes |
Rev | Line | |
---|---|---|
[4597] | 1 | /*! |
[6652] | 2 | * @file dot_particles.h |
[3329] | 3 | |
[3245] | 4 | */ |
[1853] | 5 | |
[6652] | 6 | #ifndef _DOT_PARTICLE_SYSTEM_H |
7 | #define _DOT_PARTICLE_SYSTEM_H | |
[1853] | 8 | |
[6621] | 9 | #include "particle_system.h" |
10 | #include "material.h" | |
[4377] | 11 | |
[6621] | 12 | //! A class to handle ParticleSystems |
[6652] | 13 | class DotParticles : public ParticleSystem |
[4597] | 14 | { |
[3930] | 15 | |
[6621] | 16 | public: |
[6652] | 17 | DotParticles(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT); |
18 | DotParticles(const TiXmlElement* root); | |
19 | virtual ~DotParticles(); | |
[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 | ||
[6652] | 37 | #endif /* _DOT_PARTICLE_SYSTEM_H */ |
Note: See TracBrowser
for help on using the repository browser.