Refactor the story->camera converter to be a part of the camera.
This commit is contained in:
parent
024d0cfae7
commit
088f9e022e
3 changed files with 19 additions and 14 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue