tweeny icon indicating copy to clipboard operation
tweeny copied to clipboard

multiple enumeration support

Open GeTechG opened this issue 3 years ago • 2 comments

I would like to set everything via enumeration, but alas it can only be done with the first parameter.

auto tween = tweeny::from(0.f, 0.f).to(1.f, 1.f).during(5000).via(tweeny::easing::enumerated::backIn, tweeny::easing::enumerated::bounceIn);

I get an error

tweeny.h(1016,23): error C2679: binary '=': no operator found which takes a right-hand operand of type 'F1' (or there is no acceptable conversion)
1>        with
1>        [
1>            F1=tweeny::easing::enumerated
1>        ]

GeTechG avatar Jul 25 '22 18:07 GeTechG

I'm aware of this problem, just hadn't the time to fix this (and others) yet. Thanks for the issue.

mobius3 avatar Jul 25 '22 22:07 mobius3

Can the following methods be used? auto tween = tweeny::from(0.f, 0.f).to(1.f, 1.f).during(5000). via(tweeny::easing::backIn, tweeny::easing::bounceIn);

wumiliu avatar May 07 '23 10:05 wumiliu