MercuryParticleField Class Reference

#include <MercuryParticle.h>

Inheritance diagram for MercuryParticleField:

Inheritance graph
[legend]
Collaboration diagram for MercuryParticleField:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MercuryParticleField ()
virtual ~MercuryParticleField ()
virtual void Message (int Message, PStack &data, const MString &name)
 Receive message (When subscribing to messages, you receive them via this command).
unsigned int GetPointSize () const
MercuryObjectSpawnParticle ()
virtual void Init ()
virtual void Update (const float dTime)
 [internal] Update (call this update last when abstracting because Update can destroy the object)
virtual void CustomRender ()
void LoadImage (MString path)
void ToggleDestroyOnEmpty (bool toggle)
 CLASS_RTTI (MercuryParticleField, MercuryObject)

Private Attributes

MercuryMaterial m_material
int m_pointsize
MString m_imagePath
MercurySpritem_origional
bool m_destroyOnEmpty

Detailed Description

Ideal class for fast rendering of many particles. Particles are strange and have their own special rendering which MercuryParticleField takes care of in the fastest way.

Definition at line 10 of file MercuryParticle.h.


Constructor & Destructor Documentation

MercuryParticleField::MercuryParticleField (  )  [inline]

Definition at line 13 of file MercuryParticle.h.

virtual MercuryParticleField::~MercuryParticleField (  )  [inline, virtual]

Definition at line 14 of file MercuryParticle.h.


Member Function Documentation

void MercuryParticleField::Message ( int  Message,
PStack data,
const MString name 
) [virtual]

Receive message (When subscribing to messages, you receive them via this command).

Reimplemented from MercuryMessageHandler.

Definition at line 17 of file MercuryParticle.cpp.

unsigned int MercuryParticleField::GetPointSize (  )  const [inline]

Definition at line 17 of file MercuryParticle.h.

MercuryObject * MercuryParticleField::SpawnParticle (  ) 

Definition at line 40 of file MercuryParticle.cpp.

void MercuryParticleField::Init (  )  [virtual]

Reimplemented from MercuryObject.

Definition at line 9 of file MercuryParticle.cpp.

void MercuryParticleField::Update ( const float  dTime  )  [virtual]

[internal] Update (call this update last when abstracting because Update can destroy the object)

Reimplemented from MercuryObject.

Definition at line 68 of file MercuryParticle.cpp.

void MercuryParticleField::CustomRender (  )  [virtual]

Reimplemented from MercuryObject.

Definition at line 48 of file MercuryParticle.cpp.

void MercuryParticleField::LoadImage ( MString  path  ) 

Definition at line 57 of file MercuryParticle.cpp.

void MercuryParticleField::ToggleDestroyOnEmpty ( bool  toggle  )  [inline]

Definition at line 26 of file MercuryParticle.h.

MercuryParticleField::CLASS_RTTI ( MercuryParticleField  ,
MercuryObject   
)


Member Data Documentation

MercuryMaterial MercuryParticleField::m_material [private]

Definition at line 31 of file MercuryParticle.h.

int MercuryParticleField::m_pointsize [private]

Definition at line 32 of file MercuryParticle.h.

MString MercuryParticleField::m_imagePath [private]

Definition at line 33 of file MercuryParticle.h.

MercurySprite* MercuryParticleField::m_origional [private]

Definition at line 34 of file MercuryParticle.h.

bool MercuryParticleField::m_destroyOnEmpty [private]

Definition at line 35 of file MercuryParticle.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo