mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
tween: swap around style and duration arguments in Tween constructor
This commit is contained in:
parent
fc404465d4
commit
6061b8d1bb
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue