tahoma2d/toonz/sources/include/tfxparam.h
Toshihiro Shimizu 890dddabbd first commit
2016-03-19 02:57:51 +09:00

18 lines
308 B
C++

#ifndef TFXPARAM_INCLUDED
#define TFXPARAM_INCLUDED
// #include "tcommon.h"
#include "tfx.h"
#include "tparamcontainer.h"
template <class T>
void bindParam(TFx *fx, string name, T &var, bool hidden = false)
{
fx->getParams()->add(new TParamVarT<T>(name, var, hidden));
var->addObserver(fx);
}
#endif