tahoma2d/toonz/sources/include/tfxutil.h

45 lines
1.1 KiB
C
Raw Normal View History

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