Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TFXUTIL_INCLUDED
Toshihiro Shimizu 890ddd
#define TFXUTIL_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tfx.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TImage;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
namespace TFxUtil
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
Shinya Kitaoka 3bfa54
DVAPI void setParam(const TFxP &fx, std::string paramName, double value);
Shinya Kitaoka 3bfa54
DVAPI void setParam(const TFxP &fx, std::string paramName, TPixel32 value);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DVAPI TFxP makeColorCard(TPixel32 color);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DVAPI TFxP makeCheckboard();
Toshihiro Shimizu 890ddd
DVAPI TFxP makeCheckboard(TPixel32 c0, TPixel32 c1, double squareSize);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/*-- Preferenceオプションにより、Xsheetノードに繋がった素材を「比較暗」合成して表示する --*/
Toshihiro Shimizu 890ddd
DVAPI TFxP makeDarken(const TFxP &dn, const TFxP &up);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DVAPI TFxP makeOver(const TFxP &dn, const TFxP &up);
Toshihiro Shimizu 890ddd
DVAPI TFxP makeAffine(const TFxP &arg, const TAffine &aff);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DVAPI TFxP makeBlur(const TFxP &arg, double value);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DVAPI TFxP makeRadialGradient(/*TPixel32 color*/);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
enum { NO_KEYFRAMES = 0,
Toshihiro Shimizu 890ddd
	   ALL_KEYFRAMES = 1,
Toshihiro Shimizu 890ddd
	   SOME_KEYFRAMES = -1 };
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DVAPI int getKeyframeStatus(const TFxP &fx, int frame);
Toshihiro Shimizu 890ddd
DVAPI void deleteKeyframes(const TFxP &fx, int frame);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DVAPI void setKeyframe(
Toshihiro Shimizu 890ddd
	const TFxP &dstFx, int dstFrame,
Toshihiro Shimizu 890ddd
	const TFxP &srcFx, int srcFrame,
Toshihiro Shimizu 890ddd
	bool changedOnly = false);
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif