tween: swap around style and duration arguments in Tween constructor

This commit is contained in:
Sebastian Krzyszkowiak 2018-07-18 01:40:23 +02:00
parent fc404465d4
commit 6061b8d1bb
2 changed files with 2 additions and 2 deletions

View file

@ -243,7 +243,7 @@ static double BounceEaseInOut(double p) {
// ------------------------------------------------------------------------------
SYMBOL_EXPORT struct Tween Tween(struct Game* game, double start, double stop, double duration, TWEEN_STYLE style) {
SYMBOL_EXPORT struct Tween Tween(struct Game* game, double start, double stop, TWEEN_STYLE style, double duration) {
return (struct Tween){
.start = start,
.stop = stop,

View file

@ -79,7 +79,7 @@ struct Tween {
void* data;
};
struct Tween Tween(struct Game* game, double start, double stop, double duration, TWEEN_STYLE style);
struct Tween Tween(struct Game* game, double start, double stop, TWEEN_STYLE style, double duration);
double GetTweenPosition(struct Tween* tween);
double GetTweenInterpolation(struct Tween* tween);
double GetTweenValue(struct Tween* tween);