SuzanneIsland: An island of Real-time rendering effects!
Public Member Functions
ParticleSystem Class Reference
Inheritance diagram for ParticleSystem:
SceneObject

Public Member Functions

 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.
 

Member Function Documentation

§ update()

void ParticleSystem::update ( float  timeDelta,
const glm::mat4 &  viewMat 
)

Update the particles in the particle system.

Parameters
[in]timeDeltathe time since the last frame in seconds

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