WhirlyGlobe  1.2
A 3D interactive globe toolkit for iOS
WhirlyGlobe::ParticleGenerator Class Reference

#include <ParticleGenerator.h>

Inheritance diagram for WhirlyGlobe::ParticleGenerator:
WhirlyGlobe::Generator WhirlyGlobe::Identifiable

List of all members.

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< Particleparticles
ParticleSystemSet particleSystems

Detailed Description

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.


Constructor & Destructor Documentation

WhirlyGlobe::ParticleGenerator::ParticleGenerator ( int  maxNumParticles)

Construct with the maximum number of particles we'll have at every frame. We won't exceed this.


The documentation for this class was generated from the following file: