#pragma once #include "components.hpp" #include namespace cinematic { struct Camera { components::Animation anim; sf::View view; sf::Vector2f size{SCREEN_WIDTH, SCREEN_HEIGHT}; sf::Vector2f aimed_at{0,0}; sf::Vector2f going_to{0,0}; Camera(); void resize(float width, float height); void position(float x, float y); void move(float x, float y); bool playing(); void render(sf::RenderTexture& target); void play(); void style(const std::string &name); void reset(sf::RenderTexture& target, float width, float height); }; void init(); }