aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/particle/je_particle_pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Graphics/particle/je_particle_pool.h')
-rw-r--r--src/libjin/Graphics/particle/je_particle_pool.h53
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