-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParticleStructs.h
More file actions
52 lines (45 loc) · 900 Bytes
/
ParticleStructs.h
File metadata and controls
52 lines (45 loc) · 900 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// ParticleStructs.h
// assignment2
//
// Created by Aaron Damashek on 5/8/13.
//
//
#include "Basic.h"
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#ifndef assignment2_ParticleStructs_h
#define assignment2_ParticleStructs_h
struct particle {
particle *prev, *next;
vector3 pos;
vector3 prevPos;
vector3 dir;
int life;
GLfloat color[4];
GLfloat prevColor[4];
GLfloat deltaColor[4];
};
struct emitter {
int emitter_id;
vector3 pos;
vector3 dir;
vector3 dirVar;
float yaw, yawVar;
float pitch, pitchVar;
float speed, speedVar;
particle *particleList;
int totalParticles;
int particleCount;
int emitsPerFrame, emitVar;
int life, lifeVar;
GLfloat startColor[4];
GLfloat startColorVar[4];
GLfloat endColor[4];
GLfloat endColorVar[4];
vector3 force;
};
#endif