Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Private Attributes | List of all members
Particle Class Reference

Creates a Particle object that inherits Entity. More...

#include <Particle.h>

Inheritance diagram for Particle:
Inheritance graph
Collaboration diagram for Particle:
Collaboration graph

Public Member Functions

 Particle (Model *model, float scaleValue, glm::vec3 direction, float moveSpeed)
 
 ~Particle ()
 
void update (float dt)
 
- Public Member Functions inherited from Entity
 Entity (Model *model, float scaleValue)
 
virtual ~Entity ()
 
void draw (glm::mat4 &viewMatrix, glm::mat4 &projMatrix)
 
void setPosition (glm::vec3 position)
 
void setPosition (float x, float y, float z)
 
void rotateX (float angle)
 
void rotateY (float angle)
 
void rotateZ (float angle)
 
void setScale (float scaleValue)
 
void move (glm::vec3 movement)
 
void moveX (float movement)
 
void moveY (float movement)
 
void moveZ (float movement)
 
void setMoveSpeed (float moveSpeed)
 
glm::vec3 getPosition ()
 
glm::vec3 getOrientation ()
 
float getScale ()
 

Private Attributes

glm::vec3 direction
 

Additional Inherited Members

- Protected Attributes inherited from Entity
Modelmodel
 
glm::vec3 rotation
 
glm::vec3 position
 
float scaleValue
 
float moveSpeed
 
float rotateSpeed
 

Detailed Description

Creates a Particle object that inherits Entity.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

Particle::Particle ( Model model,
float  scaleValue,
glm::vec3  direction,
float  moveSpeed 
)

Constructs a Particle Object. Creates a Particle Object with a Model using the shader file locations, the obj file location and OpenGL.

Parameters
modelA pointer to the model.
scaleValueThe scale of the Model.
directionThe direction of the Particle
moveSpeedThe move speed of the particle
Particle::~Particle ( )

Destructs a Particle Object. Destructs the Particle Object deleting the Particle Object from memory.

Member Function Documentation

void Particle::update ( float  dt)
virtual

A function that updates the Particle

Parameters
dtThe delta time.

Implements Entity.

Here is the call graph for this function:

Member Data Documentation

glm::vec3 Particle::direction
private

The direction of the Particle


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