aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/particles/particle.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-05-19 18:43:12 +1000
committerAlan Alpert <alan.alpert@nokia.com>2011-05-19 18:43:12 +1000
commit29017e818e2744f9d8f3b330e94f85bc7f72af38 (patch)
treef991deed5e57e279f96f89f7515859a9eb5ff4b7 /src/imports/particles/particle.h
parentfcdd4d4dd565c4ec8b22d9ee5aa0ad2428a4336b (diff)
Add BurstEmitter, and a simple render path for UltraParticles
None of the intermediate paths are written though. It's all or virtually nothing.
Diffstat (limited to 'src/imports/particles/particle.h')
-rw-r--r--src/imports/particles/particle.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/imports/particles/particle.h b/src/imports/particles/particle.h
index 324a7e5d7c..fbb9665a64 100644
--- a/src/imports/particles/particle.h
+++ b/src/imports/particles/particle.h
@@ -112,6 +112,22 @@ protected:
QHash<int,int> m_particleStarts;
int m_lastStart;
QPointF m_systemOffset;
+
+ template <typename VertexStruct>
+ void vertexCopy(VertexStruct &b, const ParticleVertex& a)
+ {
+ b.x = a.x - m_systemOffset.x();
+ b.y = a.y - m_systemOffset.y();
+ b.t = a.t;
+ b.lifeSpan = a.lifeSpan;
+ b.size = a.size;
+ b.endSize = a.endSize;
+ b.sx = a.sx;
+ b.sy = a.sy;
+ b.ax = a.ax;
+ b.ay = a.ay;
+ }
+
private:
};