SAGE
A Simple Academic Game Engine
Loading...
Searching...
No Matches
Sage::CParticleDesc< VEC, SD > Class Template Reference

The particle descriptor. More...

#include <SageParticle.h>

Inheritance diagram for Sage::CParticleDesc< VEC, SD >:
Collaboration diagram for Sage::CParticleDesc< VEC, SD >:

Public Attributes

VEC m_vVel = VEC::Zero
 Velocity.
 
VEC m_vAccel = VEC::Zero
 Acceleration.
 
float m_fFriction = 0.0f
 Coefficient of friction.
 
float m_fRSpeed = 0.0f
 Rotational speed.
 
float m_fLifeSpan = FLT_MAX
 Time it will live for.
 
float m_fMaxScale = 1.0f
 Maximum scale.
 
float m_fScaleInFrac = 0.0f
 Fraction of life growing in.
 
float m_fScaleOutFrac = 0.0f
 Fraction of life shrinking out.
 
float m_fFadeInFrac = 0.0f
 Fraction of life fading in.
 
float m_fFadeOutFrac = 0.0f
 Fraction of life fading out.
 

Detailed Description

template<class VEC, class SD>
class Sage::CParticleDesc< VEC, SD >

The particle descriptor describes a particle. It's templated so that we can define a 2D and a 3D version with a minimum of fuss.

Template Parameters
VECA vector class.
SDA sprite descriptor class.