ScummVM API documentation
hpl::iParticleEmitter Class Referenceabstract
Inheritance diagram for hpl::iParticleEmitter:
hpl::iParticleEmitter3D hpl::cParticleEmitter3D_UserData

Public Member Functions

 iParticleEmitter (tMaterialVec *avMaterials, unsigned int alMaxParticles, cVector3f avSize, cGraphics *apGraphics, cResources *apResources)
 
void Update (float afTimeStep)
 
virtual void Render ()=0
 
virtual eParticleEmitterType GetType ()=0
 
tString GetEntityType ()
 
virtual bool IsDead ()
 
virtual void Kill ()
 
void KillInstantly ()
 
virtual bool IsDying ()
 
void SetDataName (const tString &asName)
 
void SetDataSize (const cVector3f &avSize)
 
int GetParticleNum ()
 

Protected Member Functions

virtual void UpdateMotion (float afTimeStep)=0
 
virtual void SetParticleDefaults (cParticle *apParticle)=0
 
void SwapRemove (unsigned int alIndex)
 
cParticleCreateParticle ()
 

Protected Attributes

cGraphicsmpGraphics
 
cResourcesmpResources
 
tString msDataName
 
cVector3f mvDataSize
 
tParticleVec mvParticles
 
unsigned int mlNumOfParticles
 
unsigned int mlMaxParticles
 
cMatrixf m_mtxTemp
 
tMaterialVecmvMaterials
 
float mfTime
 
bool mbDying
 
float mfFrame
 
bool mbUpdateGfx
 
bool mbUpdateBV
 

Member Function Documentation

◆ SwapRemove()

void hpl::iParticleEmitter::SwapRemove ( unsigned int  alIndex)
protected

Swaps the position with index and the last particle and lowers the number of particles.

Parameters
alIndex

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