Shinya Kitaoka 810553
#pragma once
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
Shinya Kitaoka 120a6e
namespace TFxUtil {
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
Shinya Kitaoka 120a6e
/*--
Shinya Kitaoka 120a6e
 * Preferenceオプションにより、Xsheetノードに繋がった素材を「比較暗」合成して表示する
Shinya Kitaoka 120a6e
 * --*/
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
shun_iwasawa 2c0f50
DVAPI TFxP makeColumnColorFilter(const TFxP &arg, TPixel32 colorScale);
shun_iwasawa 2c0f50
Toshihiro Shimizu 890ddd
DVAPI TFxP makeRadialGradient(/*TPixel32 color*/);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
enum { NO_KEYFRAMES = 0, ALL_KEYFRAMES = 1, 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
Shinya Kitaoka 120a6e
DVAPI void setKeyframe(const TFxP &dstFx, int dstFrame, const TFxP &srcFx,
Shinya Kitaoka 120a6e
                       int srcFrame, bool changedOnly = false);
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif