SuperTuxKart
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CPUParticleManager Class Reference
Inheritance diagram for CPUParticleManager:
Inheritance graph
[legend]

Classes

struct  GLParticle
 

Public Member Functions

void addParticleNode (STKParticle *node)
 
void addBillboardNode (scene::IBillboardSceneNode *node)
 
void generateAll ()
 
void uploadAll ()
 
void drawAll ()
 
void reset ()
 
void cleanMaterialMap ()
 

Private Member Functions

bool isFlipsMaterial (const std::string &name)
 

Private Attributes

std::unordered_map< std::string, std::vector< STKParticle * > > m_particles_queue
 
std::unordered_map< std::string, std::vector< scene::IBillboardSceneNode * > > m_billboards_queue
 
std::unordered_map< std::string, std::vector< CPUParticle > > m_particles_generated
 
std::unordered_map< std::string, std::unique_ptr< GLParticle > > m_gl_particles
 
std::unordered_map< std::string, Material * > m_material_map
 
std::unordered_set< std::string > m_flips_material
 
std::unordered_set< std::string > m_sky_material
 

Static Private Attributes

static GLuint m_particle_quad = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< CPUParticleManager >
static CPUParticleManagergetInstance ()
 Used to get the instance.
 
static void kill ()
 Used to kill the singleton, if needed.
 
- Protected Member Functions inherited from Singleton< CPUParticleManager >
 Singleton ()
 Constructor.
 
virtual ~Singleton ()
 Destructor.
 

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