Blame toonz/sources/include/tfxparam.h
|
Shinya Kitaoka |
810553 |
#pragma once
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef TFXPARAM_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
#define TFXPARAM_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// #include "tcommon.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "tfx.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tparamcontainer.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
template <class t=""></class>
|
|
shun-iwasawa |
9d0856 |
void bindParam(TFx *fx, std::string name, T &var, bool hidden = false,
|
|
shun-iwasawa |
9d0856 |
bool obsolete = false) {
|
|
shun-iwasawa |
9d0856 |
fx->getParams()->add(new TParamVarT<t>(name, var, hidden, obsolete));</t>
|
|
Shinya Kitaoka |
120a6e |
var->addObserver(fx);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|