Class: ege::Particule
Synopsis:
+ Particule (ege::ParticuleEngine & _particuleEngine,
const char * _particuleType);
+ ~Particule (void);
+ void init (void);
+ void UnInit (void);
+ void update (float _delta);
+ void draw (const ege::Camera & _camera);
+ bool needRemove (void);
+ const char * getParticuleType (void);
+ void onEnd (void);
Description:
/** * @brief The particule class is an element with no control, when it will be created, * it does not have any control, for example smoke or reactor generation ... * or explosion particule ... */Detail:
ege::Particule ()
Particule(ege::ParticuleEngine & _particuleEngine,
const char * _particuleType);
Constructor.
Parameter [input]: _particuleEngine reference on the particule engine ...
Parameter [input]: _particuleType Type of the particule (set NULL if you did not want to use the respowner ...)
ege::~Particule ()
~Particule(void);
Destructor.
init ()
void init(void);
init the particule
UnInit ()
void UnInit(void);
Un-init the particule
update ()
void update(float _delta);
update the paticule properties
Parameter [input]: _delta Delta time from the previous call
draw ()
void draw(const ege::Camera & _camera);
draw the current particule
needRemove ()
bool needRemove(void);
Check if the element might be removed
Return: true : The element might be removed
Return: false : The element might be keeped
getParticuleType ()
const char * getParticuleType(void);
get the type of the particule
Return: Type of the current particule
onEnd ()
void onEnd(void);
When the particule arrive to his end of life, this function is called.
ege::Particule ()
Particule(ege::ParticuleEngine & _particuleEngine, const char * _particuleType);
Constructor.
-
Parameter [input]: _particuleEngine reference on the particule engine ...
Parameter [input]: _particuleType Type of the particule (set NULL if you did not want to use the respowner ...)
ege::~Particule ()
~Particule(void);
Destructor.
init ()
void init(void);
init the particule
UnInit ()
void UnInit(void);
Un-init the particule
update ()
void update(float _delta);
update the paticule properties
-
Parameter [input]: _delta Delta time from the previous call
draw ()
void draw(const ege::Camera & _camera);
draw the current particule
needRemove ()
bool needRemove(void);
Check if the element might be removed
-
Return: true : The element might be removed
Return: false : The element might be keeped
getParticuleType ()
const char * getParticuleType(void);
get the type of the particule
-
Return: Type of the current particule
onEnd ()
void onEnd(void);
When the particule arrive to his end of life, this function is called.