Refactor the story->camera converter to be a part of the camera.

This commit is contained in:
Zed A. Shaw 2026-02-22 23:02:02 -05:00
parent 024d0cfae7
commit 088f9e022e
3 changed files with 19 additions and 14 deletions

View file

@ -3,6 +3,10 @@
#include "constants.hpp"
#include <SFML/Graphics/RenderTexture.hpp>
namespace components {
struct Storyboard;
}
namespace cinematic {
struct Camera {
animate2::Animate2 anim;
@ -26,6 +30,7 @@ namespace cinematic {
void style(const std::string &name);
void reset(sf::RenderTexture& target);
void update_camera_bounds(sf::Vector2f size);
void from_story(components::Storyboard& story);
};
void init();