Animation API getting better but now need to resolve how it works with the frames.
This commit is contained in:
parent
785d0240da
commit
d4e79f1d3d
7 changed files with 70 additions and 45 deletions
|
|
@ -64,8 +64,7 @@ namespace animate2 {
|
|||
ease2::EaseFunc easing = ease2::in_out_back;
|
||||
ease2::MoveFunc motion = ease2::move_rush;
|
||||
|
||||
float twitching(Sequence& seq, float alph);
|
||||
void lerp(Sequence& seq, sf::Vector2f& pos_out, sf::Vector2f& scale_out, float alpha);
|
||||
void lerp(Sequence& seq, sf::Vector2f& pos_out, sf::Vector2f& scale_out);
|
||||
};
|
||||
|
||||
/* Gets the number of times it looped, and returns if it should stop. */
|
||||
|
|
@ -94,7 +93,8 @@ namespace animate2 {
|
|||
void apply(sf::Sprite& sprite);
|
||||
void update_frame();
|
||||
void update();
|
||||
void motion(sf::Vector2f& pos_out, sf::Vector2f& scale_out, float alpha);
|
||||
void motion(sf::Sprite& sprite, sf::Vector2f pos, sf::Vector2f scale);
|
||||
std::pair<int, double> commit();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue