bool add_particle_immediately(glm::vec3 position, glm::vec3 velocity, float lifetime)
Adds a new particle to the system if the particle buffer has an empty space and immediately updates t...
void setup_camera(sgltk::Camera *camera)
Sets up the view and projection matrices that will be used to render the particles.
void setup_shader(sgltk::Shader *shader)
Specifies the shader to use to render the particles.
void attach_texture(const std::string &name, const sgltk::Texture &texture)
Attaches a texture to the particles.
bool add_particle(glm::vec3 position, glm::vec3 velocity, float lifetime)
Adds a new particle to the system if the particle buffer has an empty space.
void update_all()
Updates the particle buffers.
void resize(unsigned int number)
Sets the number of the particles in the system.