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 3f8e9a
  fx->getParams()->add(new TParamVarT<t>(name, &var, 0, hidden, obsolete));</t>
shun-iwasawa 3f8e9a
  var->addObserver(fx);
shun-iwasawa 3f8e9a
}
shun-iwasawa 3f8e9a
shun-iwasawa 3f8e9a
template <class t=""></class>
shun-iwasawa 3f8e9a
void bindPluginParam(TFx *fx, std::string name, T &var, bool hidden = false,
shun-iwasawa 3f8e9a
                     bool obsolete = false) {
shun-iwasawa 3f8e9a
  fx->getParams()->add(new TParamVarT<t>(name, nullptr, var, hidden, obsolete));</t>
Shinya Kitaoka 120a6e
  var->addObserver(fx);
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif