Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple enumeration support #33

Open
GeTechG opened this issue Jul 25, 2022 · 2 comments
Open

multiple enumeration support #33

GeTechG opened this issue Jul 25, 2022 · 2 comments

Comments

@GeTechG
Copy link

GeTechG commented Jul 25, 2022

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>        ]
@mobius3
Copy link
Owner

mobius3 commented Jul 25, 2022

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

@wumiliu
Copy link
Contributor

wumiliu commented May 7, 2023

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants