From 9d99f9444feb4d6e654889a693a8cf375edcf2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Sun, 28 Dec 2025 18:02:35 +0100 Subject: [PATCH] chore(camera)!: replace global glm headers with separated ones --- inc/camera.hpp | 4 ++-- src/camera.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/inc/camera.hpp b/inc/camera.hpp index 6f9e0fe..49229e3 100755 --- a/inc/camera.hpp +++ b/inc/camera.hpp @@ -1,8 +1,8 @@ #ifndef CAMERA_HPP #define CAMERA_HPP -#include "glm/glm.hpp" -#include "glm/gtc/matrix_transform.hpp" +#include "glm/ext/vector_float3.hpp" +#include "glm/ext/matrix_float4x4.hpp" struct GLFWwindow; diff --git a/src/camera.cpp b/src/camera.cpp index 886227e..a68c32f 100755 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -1,7 +1,10 @@ #include "camera.hpp" -#include -#include +#include "glad/glad.h" +#include "GLFW/glfw3.h" + +#include "glm/ext/matrix_transform.hpp" +#include "glm/ext/matrix_clip_space.hpp" Camera::Camera(int width, int height, GLFWwindow* window, float sensitivity) : width(width),