Finally renamed animate2 to animation thus completing the refactor. There's still things to do to make the new animation actually work though.

This commit is contained in:
Zed A. Shaw 2026-02-24 11:36:57 -05:00
parent 83f62e3f45
commit 81a282d544
21 changed files with 83 additions and 339 deletions

View file

@ -35,7 +35,7 @@ namespace animator {
void init(const std::string& sprite_name, const std::string& background, int width, int height);
void render(sf::RenderWindow& window, bool debug=false);
bool mouse(float x, float y, guecs::Modifiers mods);
void update_status(animate2::Animate2& anim);
void update_status(animation::Animation& anim);
std::shared_ptr<sf::Sprite> get_sprite();
void show_error(const std::string& message);
void clear_error();
@ -47,7 +47,7 @@ namespace animator {
sf::RenderWindow $window;
sf::Vector2f $pos{0,0};
sf::Vector2f $scale{0,0};
animate2::Animate2 $anim;
animation::Animation $anim;
std::string $sprite_name="";
std::string $anim_name="";
std::string $background="";