2023-04-01 07:16:14 +08:00
|
|
|
#ifndef CAMERA_H
|
|
|
|
#define CAMERA_H
|
|
|
|
|
2023-04-02 07:41:32 +08:00
|
|
|
#include <SFML/Graphics.hpp>
|
2023-04-01 07:16:14 +08:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
sf::Vector2f pos;
|
|
|
|
float direction;
|
2023-04-02 08:21:02 +08:00
|
|
|
unsigned int resolution;
|
2023-04-01 07:16:14 +08:00
|
|
|
float fov;
|
|
|
|
} Camera;
|
|
|
|
|
2023-04-02 07:41:32 +08:00
|
|
|
void camera_update(Camera* camera, sf::RenderWindow* window, float t);
|
2023-04-01 07:16:14 +08:00
|
|
|
|
|
|
|
#endif
|