Last change
on this file since 8824 was
6825,
checked in by bensch, 19 years ago
|
trunk: new interface to ParticleEmitters
|
File size:
528 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file dot_emitter.h |
---|
3 | * Definition of a DotEmitter |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _DOT_EMITTER_H |
---|
7 | #define _DOT_EMITTER_H |
---|
8 | |
---|
9 | #include "particle_emitter.h" |
---|
10 | |
---|
11 | //! A class to handle an Emitter. |
---|
12 | class DotEmitter : public ParticleEmitter |
---|
13 | { |
---|
14 | friend class ParticleSystem; |
---|
15 | public: |
---|
16 | DotEmitter(float emissionRate = 1.0, float velocity = 1.0, float angle = .5); |
---|
17 | DotEmitter(const TiXmlElement* root); |
---|
18 | virtual ~DotEmitter(); |
---|
19 | |
---|
20 | protected: |
---|
21 | virtual void emitParticles(unsigned int count) const; |
---|
22 | |
---|
23 | private: |
---|
24 | void init(); |
---|
25 | }; |
---|
26 | |
---|
27 | #endif /* _DOT_EMITTER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.