raycaster/camera.hpp

22 lines
447 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 position(float x, float y);
void style(const std::string &name);
};
void init();
}