Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::fx::SparkParticle< Emitter > Class Template Reference

Inheritance diagram for ONE::fx::SparkParticle< Emitter >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class Emitter>
class ONE::fx::SparkParticle< Emitter >

Particle class that simulates sparks, drops or similar.

The particle is rendered as a rectangular billboard. It is oriented along its trajectory and its length along that axis set to size.y * (scale * |velocity| + 1) where velocity is the particle's velocity relative to the camera and size and scale are controlled by the SparkEmitter. The color is interpolated between birth and death colors over the particle's life time.

Author:
Daniel Seibert


Public Member Functions

void age (const float &)
G3D::Vector3 getPosition () const
float getTTL () const
G3D::Vector3 getVelocity () const
void initTTL (const float &)
void render (Emitter *, G3D::RenderDevice *)
void setPosition (const G3D::Vector3 &)
void setVelocity (const G3D::Vector3 &)
 SparkParticle ()


Constructor & Destructor Documentation

template<class Emitter>
ONE::fx::SparkParticle< Emitter >::SparkParticle  ) 
 


Member Function Documentation

template<class Emitter>
void ONE::fx::SparkParticle< Emitter >::age const float  )  [inline]
 

template<class Emitter>
G3D::Vector3 ONE::fx::SparkParticle< Emitter >::getPosition  )  const [inline]
 

template<class Emitter>
float ONE::fx::SparkParticle< Emitter >::getTTL  )  const [inline]
 

template<class Emitter>
G3D::Vector3 ONE::fx::SparkParticle< Emitter >::getVelocity  )  const [inline]
 

template<class Emitter>
void ONE::fx::SparkParticle< Emitter >::initTTL const float  )  [inline]
 

template<class Emitter>
void ONE::fx::SparkParticle< Emitter >::render Emitter *  ,
G3D::RenderDevice * 
 

template<class Emitter>
void ONE::fx::SparkParticle< Emitter >::setPosition const G3D::Vector3 &   )  [inline]
 

template<class Emitter>
void ONE::fx::SparkParticle< Emitter >::setVelocity const G3D::Vector3 &   )  [inline]
 


Generated on Wed Sep 7 19:03:14 2005 for ONEngine by  doxygen 1.4.3