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>
|
|
Shinya Kitaoka |
120a6e |
void bindParam(TFx *fx, std::string name, T &var, bool hidden = false) {
|
|
Shinya Kitaoka |
120a6e |
fx->getParams()->add(new TParamVarT<t>(name, var, hidden));</t>
|
|
Shinya Kitaoka |
120a6e |
var->addObserver(fx);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|