Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ParticleSystems::ImgParticle Class Reference

The ImgParticle Class. More...

#include <ImgParticle.h>

Inheritance diagram for ParticleSystems::ImgParticle:

ParticleSystems::Particle List of all members.

Public Member Functions

 ImgParticle (int sysId, Solver *sol, Texture *text)
 The minimal Constructor.
 ImgParticle (int sysId, Solver *sol, GraphicsLib::Point3 pos, GraphicsLib::Vector vel, GraphicsLib::Colour c, GraphicsLib::Colour fc, GLfloat size, GLfloat fs, GLfloat maxLife, Texture *text)
 The main Constructor.
virtual ~ImgParticle ()
 The Destructor.
virtual void draw (void)
 A virtual Function.
virtual void update (void)
 A virtual Function.
virtual bool isDead (void)
 A virtual Function.

Public Attributes

Texturetexture
 A public Variable.

Private Attributes

unsigned int TextureID
 A private Variable.

Detailed Description

The ImgParticle Class.

The ImgParticle Class is a Subclass of the Particle Class. It extends the Particle Class in order to be able to texture a Particle with a Texture.

See also:
Particle
Author:
Hannes Ricklefs

Definition at line 29 of file ImgParticle.h.


Constructor & Destructor Documentation

ImgParticle::ImgParticle int  sysId,
Solver sol,
Texture text
 

The minimal Constructor.

This Constructor only takes the ParticleSystem ID, the Solver and the Textureof a Particle.

Parameters:
sysId the ParticleSystem ID this ImgParticle belongs to
sol a pointer to the Solver
text a pointer to a Texture

Definition at line 15 of file ImgParticle.cpp.

References texture.

ImgParticle::ImgParticle int  sysId,
Solver sol,
GraphicsLib::Point3  pos,
GraphicsLib::Vector  vel,
GraphicsLib::Colour  c,
GraphicsLib::Colour  fc,
GLfloat  size,
GLfloat  fs,
GLfloat  maxLife,
Texture text
 

The main Constructor.

This Constructor is the main Constructor for a ImgParticle. It sets the most important attributes of a ImgParticle.

Parameters:
sysId the ParticleSystem ID this Particle belongs to
sol a pointer to the Solver
pos the initial Position
vel the inital Velocity
c the initial Colour
fc the fade Colour
size the inital Size
fsize the fade Size
maxLife the maximum Lifespan of the Particle
text a pointer to a Texture

Definition at line 19 of file ImgParticle.cpp.

References texture.

ImgParticle::~ImgParticle  )  [virtual]
 

The Destructor.

Destructs the ImgParticle

Definition at line 32 of file ImgParticle.cpp.


Member Function Documentation

void ImgParticle::draw void   )  [virtual]
 

A virtual Function.

Draws the ImgParticle

Implements ParticleSystems::Particle.

Definition at line 35 of file ImgParticle.cpp.

bool ImgParticle::isDead void   )  [virtual]
 

A virtual Function.

Returns true if the ImgParticle is dead

Returns:
the value if the ImgParticle is dead

Implements ParticleSystems::Particle.

Definition at line 106 of file ImgParticle.cpp.

void ImgParticle::update void   )  [virtual]
 

A virtual Function.

Updates the ImgParticles attributes

Implements ParticleSystems::Particle.

Definition at line 84 of file ImgParticle.cpp.

References ParticleSystems::Solver::nextStep().


Member Data Documentation

Texture* ParticleSystems::ImgParticle::texture
 

A public Variable.

The Pointer to the Texture for the ImgParticle

Definition at line 98 of file ImgParticle.h.

Referenced by ImgParticle().

unsigned int ParticleSystems::ImgParticle::TextureID [private]
 

A private Variable.

The TextureID needed for binding the Texture

Definition at line 104 of file ImgParticle.h.


The documentation for this class was generated from the following files:
Generated on Thu Mar 24 11:05:02 2005 for ParticleSystem by  doxygen 1.4.1