-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmitter.h
More file actions
31 lines (26 loc) · 825 Bytes
/
Emitter.h
File metadata and controls
31 lines (26 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// Emitter.h
// assignment2
//
// Created by Aaron Damashek on 5/8/13.
//
//
#ifndef __assignment2__Emitter__
#define __assignment2__Emitter__
#include <iostream>
#include <cmath>
#include "ParticleStructs.h"
class Emitter
{
public:
Emitter(particle *pool, int emitter_id, vector3 pos, vector3 dir, vector3 dirVar, float speed, float speedVar, int totalParticles, int emitsPerFrame, int emitVar, int life, int lifeVar, GLfloat startColor[4], GLfloat startColorVar[4],GLfloat endColor[4], GLfloat endColorVar[4], vector3 force);
void update();
void display();
private:
particle *managerParticleList;
emitter *e;
void rotationToDirection(float pitch, float yaw, vector3 *direction);
bool addParticle();
bool updateParticle(particle *p);
};
#endif /* defined(__assignment2__Emitter__) */