tahoma2d/toonz/sources/include/tfxutil.h

44 lines
1.2 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TFXUTIL_INCLUDED
#define TFXUTIL_INCLUDED
#include "tfx.h"
class TImage;
2016-06-15 18:43:10 +12:00
namespace TFxUtil {
2016-03-19 06:57:51 +13:00
DVAPI void setParam(const TFxP &fx, std::string paramName, double value);
DVAPI void setParam(const TFxP &fx, std::string paramName, TPixel32 value);
2016-03-19 06:57:51 +13:00
DVAPI TFxP makeColorCard(TPixel32 color);
DVAPI TFxP makeCheckboard();
DVAPI TFxP makeCheckboard(TPixel32 c0, TPixel32 c1, double squareSize);
2016-06-15 18:43:10 +12:00
/*--
* PreferenceオプションによりXsheetードに繋がった素材を
* --*/
2016-03-19 06:57:51 +13:00
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 makeColumnColorFilter(const TFxP &arg, TPixel32 colorScale);
2016-03-19 06:57:51 +13:00
DVAPI TFxP makeRadialGradient(/*TPixel32 color*/);
2016-06-15 18:43:10 +12:00
enum { NO_KEYFRAMES = 0, ALL_KEYFRAMES = 1, SOME_KEYFRAMES = -1 };
2016-03-19 06:57:51 +13:00
DVAPI int getKeyframeStatus(const TFxP &fx, int frame);
DVAPI void deleteKeyframes(const TFxP &fx, int frame);
2016-06-15 18:43:10 +12:00
DVAPI void setKeyframe(const TFxP &dstFx, int dstFrame, const TFxP &srcFx,
int srcFrame, bool changedOnly = false);
2016-03-19 06:57:51 +13:00
}
#endif