Pyrogenesis  trunk
Public Member Functions | Public Attributes | Private Attributes | List of all members
CParticleManager Class Reference

#include <ParticleManager.h>

Public Member Functions

 CParticleManager ()
 
 ~CParticleManager ()
 
CParticleEmitterTypePtr LoadEmitterType (const VfsPath &path)
 
void AddUnattachedEmitter (const CParticleEmitterPtr &emitter)
 Tell the manager to handle rendering of an emitter that is no longer attached to a unit. More...
 
void ClearUnattachedEmitters ()
 Delete unattached emitters if we don't wish to see them anymore (like in actor viewer) More...
 
void RenderSubmit (SceneCollector &collector, const CFrustum &frustum)
 
void Interpolate (const float simFrameLength)
 
float GetCurrentTime () const
 
Status ReloadChangedFile (const VfsPath &path)
 

Public Attributes

boost::mt19937 m_RNG
 Random number generator shared between all particle emitters. More...
 

Private Attributes

float m_CurrentTime
 
std::list< CParticleEmitterPtrm_UnattachedEmitters
 
std::unordered_map< VfsPath, CParticleEmitterTypePtrm_EmitterTypes
 

Constructor & Destructor Documentation

◆ CParticleManager()

CParticleManager::CParticleManager ( )

◆ ~CParticleManager()

CParticleManager::~CParticleManager ( )

Member Function Documentation

◆ AddUnattachedEmitter()

void CParticleManager::AddUnattachedEmitter ( const CParticleEmitterPtr emitter)

Tell the manager to handle rendering of an emitter that is no longer attached to a unit.

◆ ClearUnattachedEmitters()

void CParticleManager::ClearUnattachedEmitters ( )

Delete unattached emitters if we don't wish to see them anymore (like in actor viewer)

◆ GetCurrentTime()

float CParticleManager::GetCurrentTime ( ) const
inline

◆ Interpolate()

void CParticleManager::Interpolate ( const float  simFrameLength)

◆ LoadEmitterType()

CParticleEmitterTypePtr CParticleManager::LoadEmitterType ( const VfsPath path)

◆ ReloadChangedFile()

Status CParticleManager::ReloadChangedFile ( const VfsPath path)

◆ RenderSubmit()

void CParticleManager::RenderSubmit ( SceneCollector collector,
const CFrustum frustum 
)

Member Data Documentation

◆ m_CurrentTime

float CParticleManager::m_CurrentTime
private

◆ m_EmitterTypes

std::unordered_map<VfsPath, CParticleEmitterTypePtr> CParticleManager::m_EmitterTypes
private

◆ m_RNG

boost::mt19937 CParticleManager::m_RNG

Random number generator shared between all particle emitters.

◆ m_UnattachedEmitters

std::list<CParticleEmitterPtr> CParticleManager::m_UnattachedEmitters
private

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