diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Graphics/ParticleSystem/Modules/SizeModule.h |
Diffstat (limited to 'Runtime/Graphics/ParticleSystem/Modules/SizeModule.h')
-rw-r--r-- | Runtime/Graphics/ParticleSystem/Modules/SizeModule.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Runtime/Graphics/ParticleSystem/Modules/SizeModule.h b/Runtime/Graphics/ParticleSystem/Modules/SizeModule.h new file mode 100644 index 0000000..3c92634 --- /dev/null +++ b/Runtime/Graphics/ParticleSystem/Modules/SizeModule.h @@ -0,0 +1,27 @@ +#ifndef SHURIKENMODULESIZE_H +#define SHURIKENMODULESIZE_H + +#include "ParticleSystemModule.h" +#include "Runtime/Graphics/ParticleSystem/ParticleSystemCurves.h" + +class SizeModule : public ParticleSystemModule +{ +public: + DECLARE_MODULE (SizeModule) + + SizeModule(); + + void Update (const ParticleSystemParticles& ps, float* tempSize, size_t fromIndex, size_t toIndex); + + void CheckConsistency () {}; + + inline MinMaxCurve& GetCurve() { return m_Curve; } + + template<class TransferFunction> + void Transfer (TransferFunction& transfer); + +private: + MinMaxCurve m_Curve; +}; + +#endif // SHURIKENMODULESIZE_H |