1 #ifndef PARTICLESYSTEMCPU_HPP
2 #define PARTICLESYSTEMCPU_HPP
43 void push(
const glm::vec3& pos);
47 void update(
double deltaT);
59 #endif //PARTICLESYSTEMCPU_HPP
Definition: particleSystemCPU.hpp:24
std::vector< ParticleCPU > particlesCPU
Definition: particleSystemCPU.hpp:55
virtual ~ParticleSystemCPU()
Definition: particleSystemCPU.cpp:37
bool operator>(const ParticleCPU &other) const
Definition: particleSystemCPU.hpp:34
Encapsulates a graphical object model in the GPU.
Definition: model.hpp:14
Model * model
Definition: sceneObject.hpp:69
void setShader(Shader *val)
Definition: particleSystemCPU.cpp:154
ParticleSystemCPU(size_t particleCount, const std::string &name, Scene *scene=0, Model *model=0, const glm::mat4 &modelMatrix=glm::mat4(1.0f))
Definition: particleSystemCPU.cpp:20
void draw() const
Definition: particleSystemCPU.cpp:42
float xyz[3]
Definition: particleSystemCPU.hpp:25
int activeParticleCount
Definition: particleSystemCPU.hpp:53
Encapsulates the Rendering Engine, holds a complete scene and it's assets.
Definition: scene.hpp:71
Scene * scene
Definition: sceneObject.hpp:68
float alpha
Definition: particleSystemCPU.hpp:26
double lastAnimate
Definition: particleSystemCPU.hpp:51
ParticleCPU()
Definition: particleSystemCPU.cpp:13
bool animate(double time)
Definition: particleSystemCPU.cpp:90
Definition: particleSystemCPU.hpp:29
std::string name
Definition: sceneObject.hpp:73
void update(double deltaT)
Definition: particleSystemCPU.cpp:99
glm::mat4 modelMatrix
Definition: sceneObject.hpp:71
Implementation of CPU particle system.
Definition: particleSystemCPU.hpp:22
Encapsulates a shader program.
Definition: shader.hpp:9
std::vector< ParticleGPU > particlesGPU
Definition: particleSystemCPU.hpp:56
The base class of the objects which are rendered.
Definition: sceneObject.hpp:30
float cameraDistance
Definition: particleSystemCPU.hpp:30
std::vector< ParticleCPU > particlesNew
Definition: particleSystemCPU.hpp:54
void push(const glm::vec3 &pos)
Definition: particleSystemCPU.cpp:80
GLuint particlesVBO
Definition: particleSystemCPU.hpp:52