Mercurial > hg > opencollidoscope
diff CollidoscopeApp/include/ParticleController.h @ 4:ab6db404403a
commented JackDevice
author | Fiore Martin <f.martin@qmul.ac.uk> |
---|---|
date | Wed, 13 Jul 2016 12:31:37 +0200 |
parents | 7fb593d53361 |
children | 75b744078d66 |
line wrap: on
line diff
--- a/CollidoscopeApp/include/ParticleController.h Tue Jul 12 18:29:38 2016 +0200 +++ b/CollidoscopeApp/include/ParticleController.h Wed Jul 13 12:31:37 2016 +0200 @@ -10,13 +10,14 @@ struct Particle { - ci::vec2 mCloudCenter; - ci::vec2 mVel; - float mCloudSize; + ci::vec2 mCloudCenter; // initial positin of the particle + ci::vec2 mVel; // velocity + float mCloudSize; // how big is the area where particle float around. When a particle hits the + // border of the area it gets deflected - int mAge; - int mLifespan; - bool mFlyOver; + int mAge; // when mAge == mLifeSpan the particle is disposed + int mLifespan; // how long a particle lives + bool mFlyOver; // some particles last longer and fly over the screen and reach the other user }; @@ -28,7 +29,7 @@ // current number of active particles size_t mNumParticles; - ci::gl::VboRef mParticleVbo; + ci::gl::VboRef mParticleVbo; // virtual buffer object ci::gl::BatchRef mParticleBatch; public: