2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef TFXPARAM_INCLUDED
|
|
|
|
#define TFXPARAM_INCLUDED
|
|
|
|
|
|
|
|
// #include "tcommon.h"
|
|
|
|
|
|
|
|
#include "tfx.h"
|
|
|
|
#include "tparamcontainer.h"
|
|
|
|
|
|
|
|
template <class T>
|
2016-06-15 18:43:10 +12:00
|
|
|
void bindParam(TFx *fx, std::string name, T &var, bool hidden = false) {
|
|
|
|
fx->getParams()->add(new TParamVarT<T>(name, var, hidden));
|
|
|
|
var->addObserver(fx);
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|