diff options
author | chai <chaifix@163.com> | 2018-10-29 08:27:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-29 08:27:51 +0800 |
commit | aca962d7ce3d404671cace2a82b04ff937375009 (patch) | |
tree | ec315ef9df3dbd971bc914dae689e97cf9cf31ff /src/libjin/Graphics/particle/je_particle_pool.h | |
parent | 297c78319e6bd891f27f9546334feedc030fc0a7 (diff) |
*修改代码结构
Diffstat (limited to 'src/libjin/Graphics/particle/je_particle_pool.h')
-rw-r--r-- | src/libjin/Graphics/particle/je_particle_pool.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/libjin/Graphics/particle/je_particle_pool.h b/src/libjin/Graphics/particle/je_particle_pool.h deleted file mode 100644 index f1f6214..0000000 --- a/src/libjin/Graphics/particle/je_particle_pool.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef __JE_PARTICLE_BATCH_H -#define __JE_PARTICLE_BATCH_H - -#include <list> - -#include "je_particle.h" - -namespace JinEngine -{ - namespace Graphics - { - - /// - /// Particle pool for reducing memory fragmentation. - /// - class ParticlePool - { - public: - - /// - /// Particle pool constructor. - /// - /// @param count Max count of particles. - /// - ParticlePool(uint count); - - /// - /// Particle pool destructor. - /// - ~ParticlePool(); - - /// - /// Claim a particle if available. - /// - Particle* claim(); - - /// - /// Recycle particle if the particle is no more alive. - /// - void recycle(Particle* particle); - - private: - /// - /// All particles include available and inavailable particles. - /// - std::list<Particle> particles; - - }; - - } // namespace Graphics -} // namespace JinEngine - -#endif
\ No newline at end of file |