tahoma2d/toonz/sources/include/tfxutil.h
2016-05-17 00:04:11 +09:00

44 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#ifndef TFXUTIL_INCLUDED
#define TFXUTIL_INCLUDED
#include "tfx.h"
class TImage;
namespace TFxUtil
{
DVAPI void setParam(const TFxP &fx, std::string paramName, double value);
DVAPI void setParam(const TFxP &fx, std::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