prime/include/Kyoto/Particles/CColorElement.hpp

98 lines
2.2 KiB
C++
Raw Normal View History

2022-10-18 23:13:51 +00:00
#ifndef _CCOLORELEMENT
#define _CCOLORELEMENT
#include "types.h"
#include "Kyoto/Graphics/CColor.hpp"
#include "Kyoto/Particles/IElement.hpp"
class CCEConstant : public CColorElement {
CRealElement* x4_r;
CRealElement* x8_g;
CRealElement* xc_b;
CRealElement* x10_a;
public:
CCEConstant(CRealElement* r, CRealElement* g, CRealElement* b, CRealElement* a);
~CCEConstant();
bool GetValue(int frame, CColor& colorOut) const;
2022-10-18 23:13:51 +00:00
};
class CCEFastConstant : public CColorElement {
CColor x4_val;
public:
CCEFastConstant(float r, float g, float b, float a);
~CCEFastConstant();
bool GetValue(int frame, CColor& colorOut) const;
2022-10-18 23:13:51 +00:00
};
class CCEFade : public CColorElement {
CColorElement* x4_a;
CColorElement* x8_b;
CRealElement* xc_endFrame;
public:
CCEFade(CColorElement* a, CColorElement* b, CRealElement* end);
~CCEFade();
bool GetValue(int frame, CColor& colorOut) const;
2022-10-18 23:13:51 +00:00
};
class CCEFadeEnd : public CColorElement {
CColorElement* x4_a;
CColorElement* x8_b;
CRealElement* xc_startFrame;
CRealElement* x10_endFrame;
public:
CCEFadeEnd(CColorElement* a, CColorElement* b, CRealElement* start, CRealElement* end);
~CCEFadeEnd();
bool GetValue(int frame, CColor& colorOut) const;
2022-10-18 23:13:51 +00:00
};
class CCETimeChain : public CColorElement {
CColorElement* x4_a;
CColorElement* x8_b;
CIntElement* xc_swFrame;
public:
CCETimeChain(CColorElement* a, CColorElement* b, CIntElement* c);
~CCETimeChain();
bool GetValue(int frame, CColor& colorOut) const;
2022-10-18 23:13:51 +00:00
};
class CCEPulse : public CColorElement {
CIntElement* x4_aDuration;
CIntElement* x8_bDuration;
CColorElement* xc_aVal;
CColorElement* x10_bVal;
public:
CCEPulse(CIntElement* a, CIntElement* b, CColorElement* c, CColorElement* d);
~CCEPulse();
bool GetValue(int frame, CColor& colorOut) const;
2022-10-18 23:13:51 +00:00
};
class CCEKeyframeEmitter : public CColorElement {
int x4_percent;
int x8_unk1;
bool xc_loop;
bool xd_unk2;
int x10_loopEnd;
int x14_loopStart;
rstl::vector< CColor > x18_keys;
public:
CCEKeyframeEmitter(CInputStream& in);
~CCEKeyframeEmitter();
bool GetValue(int frame, CColor& valOut) const;
2022-10-18 23:13:51 +00:00
};
class CCEParticleColor : public CColorElement {
public:
~CCEParticleColor() {}
bool GetValue(int frame, CColor& colorOut) const;
2022-10-18 23:13:51 +00:00
};
#endif // _CCOLORELEMENT