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

Particle Class Reference

#include <Particle.h>

List of all members.

Public Member Functions

 Particle ()
 ~Particle ()
bool update (float dTime)
void setParent (ParticleSystem *parent)

Public Attributes

Vec3 m_prevLocation
Vec3 m_location
Vec3 m_velocity
Vec4 m_color
Vec4 m_dColor
float m_age
float m_lifetime
float m_size
float m_dSize
float m_alpha
float m_dAlpha
float m_gravity
float m_dGravity
float m_orbiting

Private Attributes

ParticleSystemm_parent


Detailed Description

Definition at line 16 of file Particle.h.


Constructor & Destructor Documentation

Particle::Particle  ) 
 

Definition at line 12 of file Particle.cpp.

References m_age, m_color, m_parent, m_size, Vec4::w, Vec4::x, Vec4::y, and Vec4::z.

Particle::~Particle  ) 
 

Definition at line 22 of file Particle.cpp.


Member Function Documentation

void Particle::setParent ParticleSystem parent  ) 
 

Definition at line 64 of file Particle.cpp.

References m_parent.

Referenced by OpenGLParticleSystem::drawAndUpdate(), and ParticleSystem::update().

bool Particle::update float  dTime  ) 
 

Definition at line 26 of file Particle.cpp.

References ParticleSystem::getLocation(), ParticleSystem::isAttractive(), m_age, m_alpha, m_color, m_dAlpha, m_dColor, m_dGravity, m_dSize, m_gravity, m_lifetime, m_location, m_parent, m_prevLocation, m_size, m_velocity, Vec3::normalize(), p_gravity, Vec4::x, Vec4::y, and Vec4::z.

Here is the call graph for this function:


Member Data Documentation

float Particle::m_age
 

Definition at line 31 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), Particle(), ParticleSystem::update(), and update().

float Particle::m_alpha
 

Definition at line 35 of file Particle.h.

Referenced by OpenGLParticleSystem::draw(), OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

Vec4 Particle::m_color
 

Definition at line 28 of file Particle.h.

Referenced by OpenGLParticleSystem::draw(), OpenGLParticleSystem::drawAndUpdate(), Particle(), ParticleSystem::update(), and update().

float Particle::m_dAlpha
 

Definition at line 36 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

Vec4 Particle::m_dColor
 

Definition at line 29 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

float Particle::m_dGravity
 

Definition at line 38 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

float Particle::m_dSize
 

Definition at line 34 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

float Particle::m_gravity
 

Definition at line 37 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

float Particle::m_lifetime
 

Definition at line 32 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

Vec3 Particle::m_location
 

Definition at line 26 of file Particle.h.

Referenced by OpenGLParticleSystem::draw(), OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

float Particle::m_orbiting
 

Definition at line 40 of file Particle.h.

ParticleSystem* Particle::m_parent [private]
 

Definition at line 43 of file Particle.h.

Referenced by Particle(), setParent(), and update().

Vec3 Particle::m_prevLocation
 

Definition at line 25 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().

float Particle::m_size
 

Definition at line 33 of file Particle.h.

Referenced by OpenGLParticleSystem::draw(), OpenGLParticleSystem::drawAndUpdate(), Particle(), ParticleSystem::update(), and update().

Vec3 Particle::m_velocity
 

Definition at line 27 of file Particle.h.

Referenced by OpenGLParticleSystem::drawAndUpdate(), ParticleSystem::update(), and update().


Generated on Sun Jun 5 15:50:35 2005 for Defacto by  doxygen 1.4.3