- \r
- template<typename T>\r
- void apply_transform(const std::function<T(const T&)>& transform, unsigned int mix_duration, const std::wstring& tween)\r
- {\r
- return channel_.execution().invoke([&]\r
- {\r
- auto& root = boost::fusion::at_key<T>(root_transforms_);\r
-\r
- auto src = root.fetch();\r
- auto dst = transform(src);\r
- root = tweened_transform<T>(src, dst, mix_duration, tween);\r
- });\r
- }\r
- \r