Add camera movement

This commit is contained in:
2023-04-02 00:41:32 +01:00
parent 15c3fe7604
commit 0cd0d410a1
3 changed files with 46 additions and 8 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
#ifndef CAMERA_H
#define CAMERA_H
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/System/Vector2.hpp>
#include <SFML/Graphics.hpp>
typedef struct
{
@@ -12,6 +11,6 @@ typedef struct
float fov;
} Camera;
void camera_update(Camera* camera, sf::RenderWindow* window);
void camera_update(Camera* camera, sf::RenderWindow* window, float t);
#endif