ege::ParticuleEngine Class Reference
Public Member Functions | |
ParticuleEngine (ege::Environement *_env) | |
void | clear () |
void | add (Particule *_particule) |
void | update (float _deltaTime) |
void | draw (const ege::Camera &_camera) |
Particule * | respown (const char *_particuleType) |
Member Function Documentation
§ add()
void ege::ParticuleEngine::add | ( | Particule * | _particule | ) |
add a particule in the engine (internal acces only)
- Parameters
-
[in] _particule Pointer on the particule to add
§ clear()
void ege::ParticuleEngine::clear | ( | ) |
clear the particule engine
§ draw()
void ege::ParticuleEngine::draw | ( | const ege::Camera & | _camera | ) |
draw all the active Particule
- Parameters
-
[in] _camera Reference on the current camera
§ respown()
Particule* ege::ParticuleEngine::respown | ( | const char * | _particuleType | ) |
get a particue with his type, we get particule that has been already removed, otherwise, you will create new
- Parameters
-
[in] _particuleType Particule type, this chek only the pointer not the data.
- Returns
- nullptr, the particule has not been removed from the created pool
- The pointer on the requested element (an init has been done).
- Note
- If you did not want to use respawn set type at nullptr.
§ update()
void ege::ParticuleEngine::update | ( | float | _deltaTime | ) |
update particule properties
- Parameters
-
[in] _deltaTime delta time to process
The documentation for this class was generated from the following file:
- framework/atria-soft/ege/ege/ParticuleEngine.hpp