-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParticleSystem.h
More file actions
39 lines (31 loc) · 865 Bytes
/
ParticleSystem.h
File metadata and controls
39 lines (31 loc) · 865 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
#pragma once
/*
This is a Particle system.
*/
#include "BaseSystem.h"
#include <shared/defs.h>
#include <util/util.h>
#include "animTcl.h"
#include <GLmodel/GLmodel.h>
#include "Particle.h"
#include "shared/opengl.h"
#include <vector>
class ParticleSystem : public BaseSystem
{
public:
ParticleSystem(const std::string& name);
// getters and setters
void particlesInit(int numParticles);
void setMass(int index, float mass);
void setVelocity(int index, glm::vec3 velocity);
void setPosition(int index, glm::vec3 position);
float getMass(int index);
glm::vec3 getVelocity(int index);
glm::vec3 getPosition(int index);
// The nescessary objects
std::vector <Particle> particles;
// Nescessary functions
int command(int argc, myCONST_SPEC char** argv);
void display(GLenum mode = GL_RENDER);
protected:
};