21 lines
410 B
C++
21 lines
410 B
C++
#pragma once
|
|
#include "components.hpp"
|
|
#include <SFML/Graphics/RenderTexture.hpp>
|
|
|
|
namespace cinematic {
|
|
struct Camera {
|
|
components::Animation anim;
|
|
sf::View view;
|
|
sf::Vector2f size;
|
|
|
|
Camera();
|
|
|
|
void resize(sf::Vector2f size);
|
|
void move(sf::RenderTexture& target, sf::Vector2f pos);
|
|
bool playing();
|
|
void play();
|
|
void style(const std::string &name);
|
|
};
|
|
|
|
void init();
|
|
}
|