|
| ParticleSystem (const glm::mat4 &matrix_, const std::string &texturePath, int maxParticleCount_, float spawnRate_, float timeToLive_, float gravity_) |
|
void | update (float timeDelta, const glm::mat4 &viewMat) |
| Update the particles in the particle system. More...
|
|
void | draw (const glm::mat4 &viewMat, const glm::mat4 &projMat, const glm::vec3 &color) |
| Draw the particles in the particle system.
|
|
void | respawn (glm::vec3 location) |
| Clear all particles and reinitiate spawning.
|
|
§ update()
void ParticleSystem::update |
( |
float |
timeDelta, |
|
|
const glm::mat4 & |
viewMat |
|
) |
| |
Update the particles in the particle system.
- Parameters
-
[in] | timeDelta | the time since the last frame in seconds |
The documentation for this class was generated from the following files: