Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Particle.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 #include <glm.hpp>
5 #include <gtc/type_ptr.hpp>
6 #include <gtc/matrix_transform.hpp>
7 #include <memory>
8 #include "glew.h"
9 #include "Utilities.h"
10 #include "Entity.h"
11 
16 class Particle : public Entity
17 {
18 private:
20  glm::vec3 direction;
21 
22 public:
31  Particle(Model* model, float scaleValue, glm::vec3 direction, float moveSpeed);
32 
37  ~Particle();
38 
43  void update(float dt);
44 };
Model * model
Definition: Entity.h:20
~Particle()
Definition: Particle.cpp:17
Creates a Model from an object and a shader.
Definition: Model.h:14
Creates a Particle object that inherits Entity.
Definition: Particle.h:16
glm::vec3 direction
Definition: Particle.h:20
void update(float dt)
Definition: Particle.cpp:26
Creates an Entity containing a Model.
Definition: Entity.h:16
float scaleValue
Definition: Entity.h:26
Particle(Model *model, float scaleValue, glm::vec3 direction, float moveSpeed)
Definition: Particle.cpp:6
float moveSpeed
Definition: Entity.h:28