From 8e7e1dfc420c41f352ba83b86e3644b08fbd3d53 Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 12 Aug 2025 19:08:30 +0300 Subject: [PATCH] Includes missing formula headers Includes the necessary formula headers in the camera trait files for different rendering engines. This ensures that the required mathematical functions and definitions are available when using camera traits. --- include/omath/vector4.hpp | 1 - source/engines/iw_engine/traits/camera_trait.cpp | 2 +- source/engines/opengl_engine/traits/camera_trait.cpp | 2 +- source/engines/source_engine/traits/camera_trait.cpp | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/omath/vector4.hpp b/include/omath/vector4.hpp index 2815b45..815ffcc 100644 --- a/include/omath/vector4.hpp +++ b/include/omath/vector4.hpp @@ -198,7 +198,6 @@ namespace omath { return {static_cast(other.x), static_cast(other.y), static_cast(other.z)}; } - } #endif }; } // namespace omath diff --git a/source/engines/iw_engine/traits/camera_trait.cpp b/source/engines/iw_engine/traits/camera_trait.cpp index 087f7b0..6619751 100644 --- a/source/engines/iw_engine/traits/camera_trait.cpp +++ b/source/engines/iw_engine/traits/camera_trait.cpp @@ -2,7 +2,7 @@ // Created by Vlad on 8/11/2025. // #include "omath/engines/iw_engine/traits/camera_trait.hpp" - +#include "omath/engines/iw_engine/formulas.hpp" namespace omath::iw_engine { diff --git a/source/engines/opengl_engine/traits/camera_trait.cpp b/source/engines/opengl_engine/traits/camera_trait.cpp index 9fb644f..98f886d 100644 --- a/source/engines/opengl_engine/traits/camera_trait.cpp +++ b/source/engines/opengl_engine/traits/camera_trait.cpp @@ -2,7 +2,7 @@ // Created by Vlad on 8/11/2025. // #include "omath/engines/opengl_engine/traits/camera_trait.hpp" - +#include "omath/engines/opengl_engine/formulas.hpp" namespace omath::opengl_engine { diff --git a/source/engines/source_engine/traits/camera_trait.cpp b/source/engines/source_engine/traits/camera_trait.cpp index bf810b7..688ee3b 100644 --- a/source/engines/source_engine/traits/camera_trait.cpp +++ b/source/engines/source_engine/traits/camera_trait.cpp @@ -2,7 +2,7 @@ // Created by Vlad on 8/11/2025. // #include "omath/engines/source_engine/traits/camera_trait.hpp" - +#include "omath/engines/source_engine/formulas.hpp" namespace omath::source_engine {