ParticleSystem Class Reference

#include <ParticleSystem.h>

Inheritance diagram for ParticleSystem:

Object3d ViewObject Object

List of all members.

Public Member Functions

 ParticleSystem ()
 Standard constructor.
 ParticleSystem (struct ParticleSystemSettings settings, string textureFilename)
 Enhanced constructor.
 ParticleSystem (const ParticleSystem &source)
 Copy constructor.
 ~ParticleSystem ()
 Destructor.
void clear ()
 Destroys all particles.
void renderGl ()
 Renders object to OpenGL.
void selectGl ()
 Renders object to OpenGL.
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.
ParticleSystem operator= (const ParticleSystem &source)
 Operator =.

Private Attributes

struct ParticleSystemSettings settings
vector< struct Particle * > particles
 Bunch of particles.
Texture particleTexture
 Texture for the particle system.
Uint32 lastTime
 Time the particle crowd was uptaded last.


Constructor & Destructor Documentation

ParticleSystem::ParticleSystem (  ) 

Standard constructor.

ParticleSystem::ParticleSystem ( struct ParticleSystemSettings  settings,
string  textureFilename 
)

Enhanced constructor.

ParticleSystem::ParticleSystem ( const ParticleSystem source  ) 

Copy constructor.

ParticleSystem::~ParticleSystem (  ) 

Destructor.


Member Function Documentation

void ParticleSystem::clear (  ) 

Destroys all particles.

void ParticleSystem::renderGl (  )  [virtual]

Renders object to OpenGL.

Implements Object3d.

void ParticleSystem::selectGl (  )  [virtual]

Renders object to OpenGL.

Implements Object3d.

string ParticleSystem::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object3d.

string ParticleSystem::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Reimplemented from Object3d.

enum classId ParticleSystem::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object3d.

ParticleSystem ParticleSystem::operator= ( const ParticleSystem source  )  [inline]

Operator =.


Member Data Documentation

vector<struct Particle*> ParticleSystem::particles [private]

Bunch of particles.

Texture for the particle system.

Uint32 ParticleSystem::lastTime [private]

Time the particle crowd was uptaded last.


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

Generated on Mon Jul 7 13:30:34 2008 for Firefly by  doxygen 1.5.6