tahoma2d/toonz/sources/stdfx/iwa_spingradientfx.h

29 lines
766 B
C
Raw Normal View History

2019-11-11 23:35:16 +13:00
#pragma once
#ifndef IWA_SPINGRADIENTFX_H
#define IWA_SPINGRADIENTFX_H
#include "tfxparam.h"
#include "stdfx.h"
#include "tparamset.h"
class Iwa_SpinGradientFx final : public TStandardZeraryFx {
FX_PLUGIN_DECLARATION(Iwa_SpinGradientFx)
TIntEnumParamP m_curveType;
TPointParamP m_center;
TDoubleParamP m_startAngle, m_endAngle;
TPixelParamP m_startColor, m_endColor;
public:
Iwa_SpinGradientFx();
bool canHandle(const TRenderSettings &info, double frame) override {
return true;
}
bool doGetBBox(double frame, TRectD &bBox,
const TRenderSettings &ri) override;
void doCompute(TTile &tile, double frame, const TRenderSettings &ri) override;
void getParamUIs(TParamUIConcept *&concepts, int &length) override;
};
#endif