Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | List of all members
Particle Class Reference

#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 ()
 

Detailed Description

Represents a particle generated by a ParticleGenerator.

Definition at line 31 of file Particle.h.

Member Function Documentation

bool Particle::isAlive ( )
Returns
If the Particle is alive, that is visible, or not. Dead Particles will can be reused by calling reset().

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.

Parameters
confThe ParticleConf to used by the ParticleGenerator.

Definition at line 24 of file Particle.cpp.

void Particle::update ( float  deltaTime,
float  distanceToCam,
ParticleConf conf 
)
Parameters
deltaTimeTime since last update in seconds.
distanceToCamThe distance from camera in units.
confThe ParticleConf used by the ParticleGenerator.

Definition at line 35 of file Particle.cpp.


The documentation for this class was generated from the following files: