![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#include <ParticleGenerator.h>
Classes | |
class | Particle |
This class represents a single particle. More... | |
class | ParticleSystem |
Public Member Functions | |
ParticleGenerator (int maxNumParticles) | |
void | generateDrawables (RendererFrameInfo *frameInfo, std::vector< Drawable * > &drawables) |
Generate the list of drawables per frame. Called by the renderer. | |
void | addParticleSystem (ParticleSystem *particleSystem) |
Add a particle system to the mix. | |
void | removeParticleSystem (SimpleIdentity systemId) |
Remove a particle system by ID. | |
Protected Types | |
typedef std::set < ParticleSystem *, IdentifiableSorter > | ParticleSystemSet |
Protected Attributes | |
CFTimeInterval | startTime |
CFTimeInterval | lastUpdateTime |
int | maxNumParticles |
std::vector< Particle > | particles |
ParticleSystemSet | particleSystems |
The Particle Generator handles creation and update for particle systems. You don't create them here, that's what the ParticleSystemLayer is for. This class just manages them and creates their associated Drawables at every frame.
WhirlyGlobe::ParticleGenerator::ParticleGenerator | ( | int | maxNumParticles | ) |
Construct with the maximum number of particles we'll have at every frame. We won't exceed this.