A bit of refactor to put apply in Animation where it belongs.

This commit is contained in:
Zed A. Shaw 2025-11-01 11:13:12 -04:00
parent 102c8c36d5
commit d60e1af6df
10 changed files with 32 additions and 31 deletions

View file

@ -5,6 +5,7 @@
#include "point.hpp"
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Graphics/Shader.hpp>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/System/Vector2.hpp>
#include <functional>
#include <optional>
@ -138,6 +139,7 @@ namespace components {
int frame_width = -1;
int frame_height = -1;
bool apply(sf::Sprite& target, sf::Vector2f pos);
void play();
float twitching();
void step(sf::Vector2f& scale_out, sf::Vector2f& pos_out, sf::IntRect& rect_out);