diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-09-01 20:11:42 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-08 03:34:41 +0200 |
commit | e45295bef132ddf220cecfa3f4343d90908744c5 (patch) | |
tree | 9ae1704c6943207353434907175bea7d0b54f4af /src/declarative/particles/qsgparticlesystem_p.h | |
parent | 0da97d5ab9aff9ed8d0000f835de67d2510f472c (diff) |
Allow particles to have eternal life
Change-Id: I3b776a6e79cb064e826cb7b7721a3a57744225c1
Reviewed-on: http://codereview.qt-project.org/4064
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'src/declarative/particles/qsgparticlesystem_p.h')
-rw-r--r-- | src/declarative/particles/qsgparticlesystem_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/particles/qsgparticlesystem_p.h b/src/declarative/particles/qsgparticlesystem_p.h index 5df6afb923..17b67d9cce 100644 --- a/src/declarative/particles/qsgparticlesystem_p.h +++ b/src/declarative/particles/qsgparticlesystem_p.h @@ -80,6 +80,7 @@ class QSGParticleDataHeap { public: QSGParticleDataHeap(); void insert(QSGParticleData* data); + void insertTimed(QSGParticleData* data, int time); int top(); @@ -211,6 +212,7 @@ public: float curSize(); void clone(const QSGParticleData& other);//Not =, leaves meta-data like index QDeclarativeV8Handle v8Value(); + void extendLife(float time); private: QSGV8ParticleData* v8Datum; }; @@ -242,6 +244,8 @@ public: int count(){ return m_particle_count; } + static const int maxLife = 600000; + signals: void systemInitialized(); |