Bubba-3D
0.9.0
Awesome game engine!
|
#include <Particle.h>
Public Member Functions | |
Particle (ParticleConf *conf, chag::float4x4 modelMatrix) | |
void | reset (ParticleConf *conf, chag::float4x4 modelMatrix) |
bool | isAlive () |
void | update (float deltaTime, float distanceToCam, ParticleConf *conf) |
chag::float3 | getPosition () |
Represents a particle generated by a ParticleGenerator.
Definition at line 31 of file Particle.h.
bool Particle::isAlive | ( | ) |
Definition at line 41 of file Particle.cpp.
void Particle::reset | ( | ParticleConf * | conf, |
chag::float4x4 | modelMatrix | ||
) |
Resets the particle according to the given ParticleConf. This is used in order to reuse particles.
conf | The ParticleConf to used by the ParticleGenerator. |
Definition at line 24 of file Particle.cpp.
void Particle::update | ( | float | deltaTime, |
float | distanceToCam, | ||
ParticleConf * | conf | ||
) |
deltaTime | Time since last update in seconds. |
distanceToCam | The distance from camera in units. |
conf | The ParticleConf used by the ParticleGenerator. |
Definition at line 35 of file Particle.cpp.