Add basic camera representation

This commit is contained in:
2023-04-01 00:16:14 +01:00
parent 35ba580398
commit 73412b27f8
3 changed files with 52 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#ifndef CAMERA_H
#define CAMERA_H
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/System/Vector2.hpp>
typedef struct
{
sf::Vector2f pos;
float direction;
float resolution;
float fov;
} Camera;
void camera_update(Camera* camera, sf::RenderWindow* window);
#endif