blob: c8ad7293c890f00c274e4323cfe00761b8a23456 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef SHURIKENMODULESIZEBYVELOCITY_H
#define SHURIKENMODULESIZEBYVELOCITY_H
#include "ParticleSystemModule.h"
#include "Runtime/Graphics/ParticleSystem/ParticleSystemCurves.h"
#include "Runtime/Math/Vector2.h"
class SizeBySpeedModule : public ParticleSystemModule
{
public:
DECLARE_MODULE (SizeBySpeedModule)
SizeBySpeedModule ();
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;
Vector2f m_Range;
};
#endif // SHURIKENMODULESIZEBYVELOCITY_H
|