diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-16 23:49:34 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-16 23:49:34 +0800 |
commit | 9b1dee8a2bed82df98d68001b9458f29a780c71e (patch) | |
tree | 7198507cb04c3c83419bf72dd0cafed45e5db5fa /visualization/extrasmeltutils.hpp | |
parent | 9dd9574270473021cb92c285fe1d39354d31b106 (diff) | |
download | QMidiPlayer-9b1dee8a2bed82df98d68001b9458f29a780c71e.tar.xz |
Finish the particle system.
Diffstat (limited to 'visualization/extrasmeltutils.hpp')
-rw-r--r-- | visualization/extrasmeltutils.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/visualization/extrasmeltutils.hpp b/visualization/extrasmeltutils.hpp index 092fbfb..bd103b0 100644 --- a/visualization/extrasmeltutils.hpp +++ b/visualization/extrasmeltutils.hpp @@ -3,6 +3,7 @@ #include <vector> #include <smelt.hpp> #include <smmath.hpp> +#include <smrandom.hpp> class smEntity3D { friend class smEntity3DBuffer; @@ -59,6 +60,7 @@ class smParticle double initsize,finalsize,size; DWORD color,initcolor,finalcolor; smQuad q; + bool dead; public: smParticle(); ~smParticle(); @@ -68,10 +70,14 @@ class smParticle class smParticleSystem { private: + static SMELT* sm; std::vector<smParticle*> particles; smParticleSystemInfo psinfo; smvec3d pos; + smRandomEngine re; smPSEmissionPositionGenerator* posGenerator; + bool active; + double cemdelay,nemdelay; public: smParticleSystem(); ~smParticleSystem(); |