1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef __CC_PARTICLE_3D_EMITTER_H__
- #define __CC_PARTICLE_3D_EMITTER_H__
- #include "base/CCRef.h"
- #include <vector>
- NS_CC_BEGIN
- class ParticleSystem3D;
- struct Particle3D;
- class CC_DLL Particle3DEmitter : public Ref
- {
- friend class ParticleSystem3D;
- public:
-
- virtual void updateEmitter(Particle3D* particle, float deltaTime);
-
- virtual void emit(int count);
-
-
- void setEnabled (bool enabled) { _isEnabled = enabled; }
-
- bool isEnabled(void) const { return _isEnabled; }
- CC_CONSTRUCTOR_ACCESS:
- Particle3DEmitter();
- virtual ~Particle3DEmitter();
-
- protected:
- ParticleSystem3D* _particleSystem;
- int _emitRate;
- bool _isEnabled;
- };
- NS_CC_END
- #endif
|