diff options
Diffstat (limited to 'src/libjin/Graphics/particles/je_particle_system.h')
-rw-r--r-- | src/libjin/Graphics/particles/je_particle_system.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/libjin/Graphics/particles/je_particle_system.h b/src/libjin/Graphics/particles/je_particle_system.h index fa050f7..76d86fa 100644 --- a/src/libjin/Graphics/particles/je_particle_system.h +++ b/src/libjin/Graphics/particles/je_particle_system.h @@ -49,7 +49,12 @@ namespace JinEngine ~ParticleSystem(); /// - /// Render particle system's all particles. + /// Update particle system and all alive particles. + /// + void update(float sec); + + /// + /// Render particle system it self. /// void render(int x, int y, float sx = 1, float sy = 1, float r = 0, float ax = 0, float ay = 0); @@ -60,19 +65,16 @@ namespace JinEngine /// void setSprite(Sprite* sprite); - /// - /// Release particle and make it available in particle pool. - /// - void releaseParticle() - { - Particle*p = mParticlePool.New(); - } - private: // Disable default constructor. ParticleSystem(); /// + /// Particle system definition. + /// + ParticleSystemDef mDef; + + /// /// Sprite to be drawn. /// Sprite* mSprite; @@ -81,6 +83,10 @@ namespace JinEngine /// Particle emitter. /// ParticleEmitter mEmitter; + + /// + /// Particle pool. + /// ParticlePool mParticlePool; /// |