Add CCEBevelGradient

This commit is contained in:
Phillip Stephens 2016-02-15 11:00:43 -08:00
parent 54b4f388ca
commit 805471eb98
2 changed files with 16 additions and 0 deletions

View File

@ -156,4 +156,10 @@ bool CCEParticleColor::GetValue(int /*frame*/, Zeus::CColor& colorOut) const
return false; return false;
} }
bool CCEBevelGradient::GetValue(int frame, Zeus::CColor& colorOut) const
{
m_gradientColor->GetValue(frame, colorOut);
return false;
}
} }

View File

@ -92,6 +92,16 @@ class CCEParticleColor : public CColorElement
public: public:
bool GetValue(int frame, Zeus::CColor& colorOut) const; bool GetValue(int frame, Zeus::CColor& colorOut) const;
}; };
/* Custom additions */
class CCEBevelGradient : public CColorElement
{
std::unique_ptr<CColorElement> m_gradientColor;
public:
CCEBevelGradient(CColorElement* gradientCol)
: m_gradientColor(gradientCol) {}
bool GetValue(int frame, Zeus::CColor &colorOut) const;
};
} }
#endif // __PSHAG_CCOLORELEMENT_HPP__ #endif // __PSHAG_CCOLORELEMENT_HPP__