From b9ac44a901e2a782bbff1ee28175735b8a3600cc Mon Sep 17 00:00:00 2001 From: Vladislav Alpatov Date: Fri, 21 Mar 2025 04:17:42 +0300 Subject: [PATCH 1/9] renamed headers --- include/omath/collision/{LineTracer.hpp => line_tracer.hpp} | 0 include/omath/engines/iw_engine/Constants.hpp | 2 +- include/omath/engines/iw_engine/Formulas.hpp | 2 +- include/omath/engines/opengl_engine/Constants.hpp | 2 +- include/omath/engines/source_engine/Constants.hpp | 2 +- include/omath/pathfinding/{Astar.hpp => a_star.hpp} | 2 +- .../pathfinding/{NavigationMesh.hpp => navigation_mesh.hpp} | 0 .../{ProjPredEngine.hpp => proj_pred_engine.hpp} | 0 .../{ProjPredEngineAVX2.hpp => proj_pred_engine_avx2.hpp} | 2 +- .../{ProjPredEngineLegacy.hpp => proj_pred_engine_legacy.hpp} | 2 +- include/omath/projection/Camera.hpp | 2 +- include/omath/projection/{ErrorCodes.hpp => error_codes.hpp} | 0 include/omath/{ViewAngles.hpp => view_angles.hpp} | 0 source/collision/LineTracer.cpp | 2 +- source/pathfinding/Astar.cpp | 2 +- source/pathfinding/NavigationMesh.cpp | 2 +- source/projectile_prediction/ProjPredEngine.cpp | 2 +- source/projectile_prediction/ProjPredEngineAVX2.cpp | 2 +- source/projectile_prediction/ProjPredEngineLegacy.cpp | 2 +- tests/general/UnitTestAstar.cpp | 2 +- tests/general/UnitTestLineTrace.cpp | 2 +- tests/general/UnitTestPrediction.cpp | 2 +- tests/general/UnitTestViewAngles.cpp | 2 +- 23 files changed, 18 insertions(+), 18 deletions(-) rename include/omath/collision/{LineTracer.hpp => line_tracer.hpp} (100%) rename include/omath/pathfinding/{Astar.hpp => a_star.hpp} (96%) rename include/omath/pathfinding/{NavigationMesh.hpp => navigation_mesh.hpp} (100%) rename include/omath/projectile_prediction/{ProjPredEngine.hpp => proj_pred_engine.hpp} (100%) rename include/omath/projectile_prediction/{ProjPredEngineAVX2.hpp => proj_pred_engine_avx2.hpp} (96%) rename include/omath/projectile_prediction/{ProjPredEngineLegacy.hpp => proj_pred_engine_legacy.hpp} (95%) rename include/omath/projection/{ErrorCodes.hpp => error_codes.hpp} (100%) rename include/omath/{ViewAngles.hpp => view_angles.hpp} (100%) diff --git a/include/omath/collision/LineTracer.hpp b/include/omath/collision/line_tracer.hpp similarity index 100% rename from include/omath/collision/LineTracer.hpp rename to include/omath/collision/line_tracer.hpp diff --git a/include/omath/engines/iw_engine/Constants.hpp b/include/omath/engines/iw_engine/Constants.hpp index 88979158..bea065ed 100644 --- a/include/omath/engines/iw_engine/Constants.hpp +++ b/include/omath/engines/iw_engine/Constants.hpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include namespace omath::iw_engine { diff --git a/include/omath/engines/iw_engine/Formulas.hpp b/include/omath/engines/iw_engine/Formulas.hpp index 1249c983..72b38535 100644 --- a/include/omath/engines/iw_engine/Formulas.hpp +++ b/include/omath/engines/iw_engine/Formulas.hpp @@ -21,4 +21,4 @@ namespace omath::iw_engine [[nodiscard]] Mat4x4 CalcPerspectiveProjectionMatrix(float fieldOfView, float aspectRatio, float near, float far); -} // namespace omath::source +} // namespace omath::iw_engine diff --git a/include/omath/engines/opengl_engine/Constants.hpp b/include/omath/engines/opengl_engine/Constants.hpp index d06873b8..cca54285 100644 --- a/include/omath/engines/opengl_engine/Constants.hpp +++ b/include/omath/engines/opengl_engine/Constants.hpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include namespace omath::opengl_engine { diff --git a/include/omath/engines/source_engine/Constants.hpp b/include/omath/engines/source_engine/Constants.hpp index 6c331b29..6d6d0003 100644 --- a/include/omath/engines/source_engine/Constants.hpp +++ b/include/omath/engines/source_engine/Constants.hpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include namespace omath::source_engine { diff --git a/include/omath/pathfinding/Astar.hpp b/include/omath/pathfinding/a_star.hpp similarity index 96% rename from include/omath/pathfinding/Astar.hpp rename to include/omath/pathfinding/a_star.hpp index 9cbcedbb..daac92d0 100644 --- a/include/omath/pathfinding/Astar.hpp +++ b/include/omath/pathfinding/a_star.hpp @@ -4,7 +4,7 @@ #pragma once #include -#include "NavigationMesh.hpp" +#include "navigation_mesh.hpp" #include "omath/Vector3.hpp" namespace omath::pathfinding diff --git a/include/omath/pathfinding/NavigationMesh.hpp b/include/omath/pathfinding/navigation_mesh.hpp similarity index 100% rename from include/omath/pathfinding/NavigationMesh.hpp rename to include/omath/pathfinding/navigation_mesh.hpp diff --git a/include/omath/projectile_prediction/ProjPredEngine.hpp b/include/omath/projectile_prediction/proj_pred_engine.hpp similarity index 100% rename from include/omath/projectile_prediction/ProjPredEngine.hpp rename to include/omath/projectile_prediction/proj_pred_engine.hpp diff --git a/include/omath/projectile_prediction/ProjPredEngineAVX2.hpp b/include/omath/projectile_prediction/proj_pred_engine_avx2.hpp similarity index 96% rename from include/omath/projectile_prediction/ProjPredEngineAVX2.hpp rename to include/omath/projectile_prediction/proj_pred_engine_avx2.hpp index ffc0c5ed..84a57e5c 100644 --- a/include/omath/projectile_prediction/ProjPredEngineAVX2.hpp +++ b/include/omath/projectile_prediction/proj_pred_engine_avx2.hpp @@ -2,7 +2,7 @@ // Created by Vlad on 2/23/2025. // #pragma once -#include "ProjPredEngine.hpp" +#include "proj_pred_engine.hpp" namespace omath::projectile_prediction { diff --git a/include/omath/projectile_prediction/ProjPredEngineLegacy.hpp b/include/omath/projectile_prediction/proj_pred_engine_legacy.hpp similarity index 95% rename from include/omath/projectile_prediction/ProjPredEngineLegacy.hpp rename to include/omath/projectile_prediction/proj_pred_engine_legacy.hpp index f22308d6..0b38e73d 100644 --- a/include/omath/projectile_prediction/ProjPredEngineLegacy.hpp +++ b/include/omath/projectile_prediction/proj_pred_engine_legacy.hpp @@ -6,7 +6,7 @@ #include #include "omath/Vector3.hpp" -#include "omath/projectile_prediction/ProjPredEngine.hpp" +#include "omath/projectile_prediction/proj_pred_engine.hpp" #include "omath/projectile_prediction/Projectile.hpp" #include "omath/projectile_prediction/Target.hpp" diff --git a/include/omath/projection/Camera.hpp b/include/omath/projection/Camera.hpp index c6bacbba..8fdd05dc 100644 --- a/include/omath/projection/Camera.hpp +++ b/include/omath/projection/Camera.hpp @@ -7,7 +7,7 @@ #include #include #include -#include "ErrorCodes.hpp" +#include "error_codes.hpp" #include #include diff --git a/include/omath/projection/ErrorCodes.hpp b/include/omath/projection/error_codes.hpp similarity index 100% rename from include/omath/projection/ErrorCodes.hpp rename to include/omath/projection/error_codes.hpp diff --git a/include/omath/ViewAngles.hpp b/include/omath/view_angles.hpp similarity index 100% rename from include/omath/ViewAngles.hpp rename to include/omath/view_angles.hpp diff --git a/source/collision/LineTracer.cpp b/source/collision/LineTracer.cpp index 05f5bef7..0dfc7f54 100644 --- a/source/collision/LineTracer.cpp +++ b/source/collision/LineTracer.cpp @@ -1,7 +1,7 @@ // // Created by Orange on 11/13/2024. // -#include "omath/collision/LineTracer.hpp" +#include "omath/collision/line_tracer.hpp" namespace omath::collision { diff --git a/source/pathfinding/Astar.cpp b/source/pathfinding/Astar.cpp index 4d553e72..aba160f1 100644 --- a/source/pathfinding/Astar.cpp +++ b/source/pathfinding/Astar.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 28.07.2024. // -#include "omath/pathfinding/Astar.hpp" +#include "omath/pathfinding/a_star.hpp" #include #include diff --git a/source/pathfinding/NavigationMesh.cpp b/source/pathfinding/NavigationMesh.cpp index e5491a3a..f908cc86 100644 --- a/source/pathfinding/NavigationMesh.cpp +++ b/source/pathfinding/NavigationMesh.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 28.07.2024. // -#include "omath/pathfinding/NavigationMesh.hpp" +#include "omath/pathfinding/navigation_mesh.hpp" #include #include diff --git a/source/projectile_prediction/ProjPredEngine.cpp b/source/projectile_prediction/ProjPredEngine.cpp index 7be6708b..e8e7f92c 100644 --- a/source/projectile_prediction/ProjPredEngine.cpp +++ b/source/projectile_prediction/ProjPredEngine.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 2/23/2025. // -#include "omath/projectile_prediction/ProjPredEngine.hpp" +#include "omath/projectile_prediction/proj_pred_engine.hpp" namespace omath::projectile_prediction diff --git a/source/projectile_prediction/ProjPredEngineAVX2.cpp b/source/projectile_prediction/ProjPredEngineAVX2.cpp index 8a4f8f63..771c8e0f 100644 --- a/source/projectile_prediction/ProjPredEngineAVX2.cpp +++ b/source/projectile_prediction/ProjPredEngineAVX2.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 2/23/2025. // -#include "omath/projectile_prediction/ProjPredEngineAVX2.hpp" +#include "omath/projectile_prediction/proj_pred_engine_avx2.hpp" #include "source_location" namespace omath::projectile_prediction diff --git a/source/projectile_prediction/ProjPredEngineLegacy.cpp b/source/projectile_prediction/ProjPredEngineLegacy.cpp index 3a8c7652..2e49b787 100644 --- a/source/projectile_prediction/ProjPredEngineLegacy.cpp +++ b/source/projectile_prediction/ProjPredEngineLegacy.cpp @@ -1,4 +1,4 @@ -#include "omath/projectile_prediction/ProjPredEngineLegacy.hpp" +#include "omath/projectile_prediction/proj_pred_engine_legacy.hpp" #include #include diff --git a/tests/general/UnitTestAstar.cpp b/tests/general/UnitTestAstar.cpp index da65f9f4..e33f8c0a 100644 --- a/tests/general/UnitTestAstar.cpp +++ b/tests/general/UnitTestAstar.cpp @@ -2,7 +2,7 @@ // Created by Vlad on 18.08.2024. // #include -#include +#include TEST(UnitTestAstar, FindingRightPath) diff --git a/tests/general/UnitTestLineTrace.cpp b/tests/general/UnitTestLineTrace.cpp index 3c0bf044..0b72d2c8 100644 --- a/tests/general/UnitTestLineTrace.cpp +++ b/tests/general/UnitTestLineTrace.cpp @@ -1,5 +1,5 @@ #include "gtest/gtest.h" -#include "omath/collision/LineTracer.hpp" +#include "omath/collision/line_tracer.hpp" #include "omath/Triangle.hpp" #include "omath/Vector3.hpp" diff --git a/tests/general/UnitTestPrediction.cpp b/tests/general/UnitTestPrediction.cpp index c77c4386..94e8ae48 100644 --- a/tests/general/UnitTestPrediction.cpp +++ b/tests/general/UnitTestPrediction.cpp @@ -1,5 +1,5 @@ #include -#include +#include TEST(UnitTestPrediction, PredictionTest) { diff --git a/tests/general/UnitTestViewAngles.cpp b/tests/general/UnitTestViewAngles.cpp index 97c90e3e..28605456 100644 --- a/tests/general/UnitTestViewAngles.cpp +++ b/tests/general/UnitTestViewAngles.cpp @@ -1,4 +1,4 @@ // // Created by Orange on 11/30/2024. // -#include \ No newline at end of file +#include \ No newline at end of file From 2688d977a94597e9a5cb9a3d0b1f5d35fceb856e Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:21:31 +0300 Subject: [PATCH 2/9] change --- include/omath/{Angle.hpp => angle.hpp} | 0 include/omath/{Angles.hpp => angles.hpp} | 0 include/omath/{Color.hpp => color.hpp} | 0 include/omath/engines/iw_engine/{Camera.hpp => camera.hpp} | 0 .../omath/engines/iw_engine/{Constants.hpp => constants.hpp} | 0 include/omath/engines/iw_engine/{Formulas.hpp => formulas.hpp} | 0 include/omath/engines/opengl_engine/{Camera.hpp => camera.hpp} | 0 .../engines/opengl_engine/{Constants.hpp => constants.hpp} | 0 .../omath/engines/opengl_engine/{Formulas.hpp => formulas.hpp} | 0 include/omath/engines/source_engine/{Camera.hpp => camera.hpp} | 0 .../engines/source_engine/{Constants.hpp => constants.hpp} | 0 .../omath/engines/source_engine/{Formulas.hpp => formulas.hpp} | 0 include/omath/{Mat.hpp => mat.hpp} | 0 include/omath/{Matrix.hpp => matrix.hpp} | 0 .../projectile_prediction/{Projectile.hpp => projectile.hpp} | 0 include/omath/projectile_prediction/{Target.hpp => target.hpp} | 0 include/omath/projection/{Camera.hpp => camera.hpp} | 0 include/omath/{Triangle.hpp => triangle.hpp} | 0 include/omath/{Vector2.hpp => vector2.hpp} | 0 include/omath/{Vector3.hpp => vector3.hpp} | 0 include/omath/{Vector4.hpp => vector4.hpp} | 0 source/CMakeLists.txt | 2 +- source/{Matrix.cpp => matrix.cpp} | 0 source/projection/{Camera.cpp => camera.cpp} | 0 24 files changed, 1 insertion(+), 1 deletion(-) rename include/omath/{Angle.hpp => angle.hpp} (100%) rename include/omath/{Angles.hpp => angles.hpp} (100%) rename include/omath/{Color.hpp => color.hpp} (100%) rename include/omath/engines/iw_engine/{Camera.hpp => camera.hpp} (100%) rename include/omath/engines/iw_engine/{Constants.hpp => constants.hpp} (100%) rename include/omath/engines/iw_engine/{Formulas.hpp => formulas.hpp} (100%) rename include/omath/engines/opengl_engine/{Camera.hpp => camera.hpp} (100%) rename include/omath/engines/opengl_engine/{Constants.hpp => constants.hpp} (100%) rename include/omath/engines/opengl_engine/{Formulas.hpp => formulas.hpp} (100%) rename include/omath/engines/source_engine/{Camera.hpp => camera.hpp} (100%) rename include/omath/engines/source_engine/{Constants.hpp => constants.hpp} (100%) rename include/omath/engines/source_engine/{Formulas.hpp => formulas.hpp} (100%) rename include/omath/{Mat.hpp => mat.hpp} (100%) rename include/omath/{Matrix.hpp => matrix.hpp} (100%) rename include/omath/projectile_prediction/{Projectile.hpp => projectile.hpp} (100%) rename include/omath/projectile_prediction/{Target.hpp => target.hpp} (100%) rename include/omath/projection/{Camera.hpp => camera.hpp} (100%) rename include/omath/{Triangle.hpp => triangle.hpp} (100%) rename include/omath/{Vector2.hpp => vector2.hpp} (100%) rename include/omath/{Vector3.hpp => vector3.hpp} (100%) rename include/omath/{Vector4.hpp => vector4.hpp} (100%) rename source/{Matrix.cpp => matrix.cpp} (100%) rename source/projection/{Camera.cpp => camera.cpp} (100%) diff --git a/include/omath/Angle.hpp b/include/omath/angle.hpp similarity index 100% rename from include/omath/Angle.hpp rename to include/omath/angle.hpp diff --git a/include/omath/Angles.hpp b/include/omath/angles.hpp similarity index 100% rename from include/omath/Angles.hpp rename to include/omath/angles.hpp diff --git a/include/omath/Color.hpp b/include/omath/color.hpp similarity index 100% rename from include/omath/Color.hpp rename to include/omath/color.hpp diff --git a/include/omath/engines/iw_engine/Camera.hpp b/include/omath/engines/iw_engine/camera.hpp similarity index 100% rename from include/omath/engines/iw_engine/Camera.hpp rename to include/omath/engines/iw_engine/camera.hpp diff --git a/include/omath/engines/iw_engine/Constants.hpp b/include/omath/engines/iw_engine/constants.hpp similarity index 100% rename from include/omath/engines/iw_engine/Constants.hpp rename to include/omath/engines/iw_engine/constants.hpp diff --git a/include/omath/engines/iw_engine/Formulas.hpp b/include/omath/engines/iw_engine/formulas.hpp similarity index 100% rename from include/omath/engines/iw_engine/Formulas.hpp rename to include/omath/engines/iw_engine/formulas.hpp diff --git a/include/omath/engines/opengl_engine/Camera.hpp b/include/omath/engines/opengl_engine/camera.hpp similarity index 100% rename from include/omath/engines/opengl_engine/Camera.hpp rename to include/omath/engines/opengl_engine/camera.hpp diff --git a/include/omath/engines/opengl_engine/Constants.hpp b/include/omath/engines/opengl_engine/constants.hpp similarity index 100% rename from include/omath/engines/opengl_engine/Constants.hpp rename to include/omath/engines/opengl_engine/constants.hpp diff --git a/include/omath/engines/opengl_engine/Formulas.hpp b/include/omath/engines/opengl_engine/formulas.hpp similarity index 100% rename from include/omath/engines/opengl_engine/Formulas.hpp rename to include/omath/engines/opengl_engine/formulas.hpp diff --git a/include/omath/engines/source_engine/Camera.hpp b/include/omath/engines/source_engine/camera.hpp similarity index 100% rename from include/omath/engines/source_engine/Camera.hpp rename to include/omath/engines/source_engine/camera.hpp diff --git a/include/omath/engines/source_engine/Constants.hpp b/include/omath/engines/source_engine/constants.hpp similarity index 100% rename from include/omath/engines/source_engine/Constants.hpp rename to include/omath/engines/source_engine/constants.hpp diff --git a/include/omath/engines/source_engine/Formulas.hpp b/include/omath/engines/source_engine/formulas.hpp similarity index 100% rename from include/omath/engines/source_engine/Formulas.hpp rename to include/omath/engines/source_engine/formulas.hpp diff --git a/include/omath/Mat.hpp b/include/omath/mat.hpp similarity index 100% rename from include/omath/Mat.hpp rename to include/omath/mat.hpp diff --git a/include/omath/Matrix.hpp b/include/omath/matrix.hpp similarity index 100% rename from include/omath/Matrix.hpp rename to include/omath/matrix.hpp diff --git a/include/omath/projectile_prediction/Projectile.hpp b/include/omath/projectile_prediction/projectile.hpp similarity index 100% rename from include/omath/projectile_prediction/Projectile.hpp rename to include/omath/projectile_prediction/projectile.hpp diff --git a/include/omath/projectile_prediction/Target.hpp b/include/omath/projectile_prediction/target.hpp similarity index 100% rename from include/omath/projectile_prediction/Target.hpp rename to include/omath/projectile_prediction/target.hpp diff --git a/include/omath/projection/Camera.hpp b/include/omath/projection/camera.hpp similarity index 100% rename from include/omath/projection/Camera.hpp rename to include/omath/projection/camera.hpp diff --git a/include/omath/Triangle.hpp b/include/omath/triangle.hpp similarity index 100% rename from include/omath/Triangle.hpp rename to include/omath/triangle.hpp diff --git a/include/omath/Vector2.hpp b/include/omath/vector2.hpp similarity index 100% rename from include/omath/Vector2.hpp rename to include/omath/vector2.hpp diff --git a/include/omath/Vector3.hpp b/include/omath/vector3.hpp similarity index 100% rename from include/omath/Vector3.hpp rename to include/omath/vector3.hpp diff --git a/include/omath/Vector4.hpp b/include/omath/vector4.hpp similarity index 100% rename from include/omath/Vector4.hpp rename to include/omath/vector4.hpp diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 10ca8ed2..f690fe38 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -1,5 +1,5 @@ target_sources(omath PRIVATE - Matrix.cpp + matrix.cpp color.cpp ) diff --git a/source/Matrix.cpp b/source/matrix.cpp similarity index 100% rename from source/Matrix.cpp rename to source/matrix.cpp diff --git a/source/projection/Camera.cpp b/source/projection/camera.cpp similarity index 100% rename from source/projection/Camera.cpp rename to source/projection/camera.cpp From c7dda0ff10c1d307bcf16caa66fe21dfce85a9a8 Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:30:17 +0300 Subject: [PATCH 3/9] changed source files naming --- source/collision/CMakeLists.txt | 2 +- .../{LineTracer.cpp => line_tracer.cpp} | 0 source/engines/iw_engine/CMakeLists.txt | 2 +- .../iw_engine/{Camera.cpp => camera.cpp} | 0 .../iw_engine/{Formulas.cpp => formulas.cpp} | 0 source/engines/opengl_engine/CMakeLists.txt | 2 +- .../opengl_engine/{Camera.cpp => camera.cpp} | 0 .../{Formulas.cpp => formulas.cpp} | 0 source/engines/source_engine/CMakeLists.txt | 2 +- .../source_engine/{Camera.cpp => camera.cpp} | 0 .../{Formulas.cpp => formulas.cpp} | 0 source/pathfinding/CMakeLists.txt | 2 +- source/pathfinding/{Astar.cpp => a_star.cpp} | 0 ...NavigationMesh.cpp => navigation_mesh.cpp} | 0 source/projectile_prediction/CMakeLists.txt | 2 +- ...rojPredEngine.cpp => proj_pred_engine.cpp} | 0 ...gineAVX2.cpp => proj_pred_engine_avx2.cpp} | 0 ...Legacy.cpp => proj_pred_engine_legacy.cpp} | 0 .../{Projectile.cpp => projectile.cpp} | 0 .../{Target.cpp => target.cpp} | 0 source/projection/CMakeLists.txt | 2 +- tests/CMakeLists.txt | 38 +++++++++---------- ...stIwEngine.cpp => unit_test_iw_engine.cpp} | 0 ...itTestOpenGL.cpp => unit_test_open_gl.cpp} | 0 ...Engine.cpp => unit_test_source_engine.cpp} | 0 ...yEngine.cpp => unit_test_unity_engine.cpp} | 0 ...UnitTestAstar.cpp => unit_test_a_star.cpp} | 0 ...{UnitTestAngle.cpp => unit_test_angle.cpp} | 0 ...nitTestAngles.cpp => unit_test_angles.cpp} | 0 ...{UnitTestColor.cpp => unit_test_color.cpp} | 0 ...LineTrace.cpp => unit_test_line_trace.cpp} | 0 .../{UnitTestMat.cpp => unit_test_mat.cpp} | 0 ...nitTestMatrix.cpp => unit_test_matrix.cpp} | 0 ...rediction.cpp => unit_test_prediction.cpp} | 0 ...rojection.cpp => unit_test_projection.cpp} | 0 ...estTriangle.cpp => unit_test_triangle.cpp} | 0 ...tTestVector2.cpp => unit_test_vector2.cpp} | 0 ...tTestVector3.cpp => unit_test_vector3.cpp} | 0 ...tTestVector4.cpp => unit_test_vector4.cpp} | 0 ...ewAngles.cpp => unit_test_view_angles.cpp} | 0 40 files changed, 26 insertions(+), 26 deletions(-) rename source/collision/{LineTracer.cpp => line_tracer.cpp} (100%) rename source/engines/iw_engine/{Camera.cpp => camera.cpp} (100%) rename source/engines/iw_engine/{Formulas.cpp => formulas.cpp} (100%) rename source/engines/opengl_engine/{Camera.cpp => camera.cpp} (100%) rename source/engines/opengl_engine/{Formulas.cpp => formulas.cpp} (100%) rename source/engines/source_engine/{Camera.cpp => camera.cpp} (100%) rename source/engines/source_engine/{Formulas.cpp => formulas.cpp} (100%) rename source/pathfinding/{Astar.cpp => a_star.cpp} (100%) rename source/pathfinding/{NavigationMesh.cpp => navigation_mesh.cpp} (100%) rename source/projectile_prediction/{ProjPredEngine.cpp => proj_pred_engine.cpp} (100%) rename source/projectile_prediction/{ProjPredEngineAVX2.cpp => proj_pred_engine_avx2.cpp} (100%) rename source/projectile_prediction/{ProjPredEngineLegacy.cpp => proj_pred_engine_legacy.cpp} (100%) rename source/projectile_prediction/{Projectile.cpp => projectile.cpp} (100%) rename source/projectile_prediction/{Target.cpp => target.cpp} (100%) rename tests/engines/{UnitTestIwEngine.cpp => unit_test_iw_engine.cpp} (100%) rename tests/engines/{UnitTestOpenGL.cpp => unit_test_open_gl.cpp} (100%) rename tests/engines/{UnitTestSourceEngine.cpp => unit_test_source_engine.cpp} (100%) rename tests/engines/{UnitTestUnityEngine.cpp => unit_test_unity_engine.cpp} (100%) rename tests/general/{UnitTestAstar.cpp => unit_test_a_star.cpp} (100%) rename tests/general/{UnitTestAngle.cpp => unit_test_angle.cpp} (100%) rename tests/general/{UnitTestAngles.cpp => unit_test_angles.cpp} (100%) rename tests/general/{UnitTestColor.cpp => unit_test_color.cpp} (100%) rename tests/general/{UnitTestLineTrace.cpp => unit_test_line_trace.cpp} (100%) rename tests/general/{UnitTestMat.cpp => unit_test_mat.cpp} (100%) rename tests/general/{UnitTestMatrix.cpp => unit_test_matrix.cpp} (100%) rename tests/general/{UnitTestPrediction.cpp => unit_test_prediction.cpp} (100%) rename tests/general/{UnitTestProjection.cpp => unit_test_projection.cpp} (100%) rename tests/general/{UnitTestTriangle.cpp => unit_test_triangle.cpp} (100%) rename tests/general/{UnitTestVector2.cpp => unit_test_vector2.cpp} (100%) rename tests/general/{UnitTestVector3.cpp => unit_test_vector3.cpp} (100%) rename tests/general/{UnitTestVector4.cpp => unit_test_vector4.cpp} (100%) rename tests/general/{UnitTestViewAngles.cpp => unit_test_view_angles.cpp} (100%) diff --git a/source/collision/CMakeLists.txt b/source/collision/CMakeLists.txt index 22a2abc6..09b4793a 100644 --- a/source/collision/CMakeLists.txt +++ b/source/collision/CMakeLists.txt @@ -1,3 +1,3 @@ target_sources(omath PRIVATE - LineTracer.cpp + line_tracer.cpp ) diff --git a/source/collision/LineTracer.cpp b/source/collision/line_tracer.cpp similarity index 100% rename from source/collision/LineTracer.cpp rename to source/collision/line_tracer.cpp diff --git a/source/engines/iw_engine/CMakeLists.txt b/source/engines/iw_engine/CMakeLists.txt index 0153efab..e5e97417 100644 --- a/source/engines/iw_engine/CMakeLists.txt +++ b/source/engines/iw_engine/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp Formulas.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp formulas.cpp) \ No newline at end of file diff --git a/source/engines/iw_engine/Camera.cpp b/source/engines/iw_engine/camera.cpp similarity index 100% rename from source/engines/iw_engine/Camera.cpp rename to source/engines/iw_engine/camera.cpp diff --git a/source/engines/iw_engine/Formulas.cpp b/source/engines/iw_engine/formulas.cpp similarity index 100% rename from source/engines/iw_engine/Formulas.cpp rename to source/engines/iw_engine/formulas.cpp diff --git a/source/engines/opengl_engine/CMakeLists.txt b/source/engines/opengl_engine/CMakeLists.txt index 0153efab..e5e97417 100644 --- a/source/engines/opengl_engine/CMakeLists.txt +++ b/source/engines/opengl_engine/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp Formulas.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp formulas.cpp) \ No newline at end of file diff --git a/source/engines/opengl_engine/Camera.cpp b/source/engines/opengl_engine/camera.cpp similarity index 100% rename from source/engines/opengl_engine/Camera.cpp rename to source/engines/opengl_engine/camera.cpp diff --git a/source/engines/opengl_engine/Formulas.cpp b/source/engines/opengl_engine/formulas.cpp similarity index 100% rename from source/engines/opengl_engine/Formulas.cpp rename to source/engines/opengl_engine/formulas.cpp diff --git a/source/engines/source_engine/CMakeLists.txt b/source/engines/source_engine/CMakeLists.txt index 0153efab..e5e97417 100644 --- a/source/engines/source_engine/CMakeLists.txt +++ b/source/engines/source_engine/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp Formulas.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp formulas.cpp) \ No newline at end of file diff --git a/source/engines/source_engine/Camera.cpp b/source/engines/source_engine/camera.cpp similarity index 100% rename from source/engines/source_engine/Camera.cpp rename to source/engines/source_engine/camera.cpp diff --git a/source/engines/source_engine/Formulas.cpp b/source/engines/source_engine/formulas.cpp similarity index 100% rename from source/engines/source_engine/Formulas.cpp rename to source/engines/source_engine/formulas.cpp diff --git a/source/pathfinding/CMakeLists.txt b/source/pathfinding/CMakeLists.txt index d1da67f1..e7cc7b93 100644 --- a/source/pathfinding/CMakeLists.txt +++ b/source/pathfinding/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE NavigationMesh.cpp Astar.cpp) \ No newline at end of file +target_sources(omath PRIVATE navigation_mesh.cpp a_star.cpp) \ No newline at end of file diff --git a/source/pathfinding/Astar.cpp b/source/pathfinding/a_star.cpp similarity index 100% rename from source/pathfinding/Astar.cpp rename to source/pathfinding/a_star.cpp diff --git a/source/pathfinding/NavigationMesh.cpp b/source/pathfinding/navigation_mesh.cpp similarity index 100% rename from source/pathfinding/NavigationMesh.cpp rename to source/pathfinding/navigation_mesh.cpp diff --git a/source/projectile_prediction/CMakeLists.txt b/source/projectile_prediction/CMakeLists.txt index 623aa656..1f189f7f 100644 --- a/source/projectile_prediction/CMakeLists.txt +++ b/source/projectile_prediction/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE ProjPredEngineLegacy.cpp Projectile.cpp Target.cpp ProjPredEngineAVX2.cpp ProjPredEngine.cpp) \ No newline at end of file +target_sources(omath PRIVATE proj_pred_engine_legacy.cpp projectile.cpp target.cpp proj_pred_engine_avx2.cpp proj_pred_engine.cpp) \ No newline at end of file diff --git a/source/projectile_prediction/ProjPredEngine.cpp b/source/projectile_prediction/proj_pred_engine.cpp similarity index 100% rename from source/projectile_prediction/ProjPredEngine.cpp rename to source/projectile_prediction/proj_pred_engine.cpp diff --git a/source/projectile_prediction/ProjPredEngineAVX2.cpp b/source/projectile_prediction/proj_pred_engine_avx2.cpp similarity index 100% rename from source/projectile_prediction/ProjPredEngineAVX2.cpp rename to source/projectile_prediction/proj_pred_engine_avx2.cpp diff --git a/source/projectile_prediction/ProjPredEngineLegacy.cpp b/source/projectile_prediction/proj_pred_engine_legacy.cpp similarity index 100% rename from source/projectile_prediction/ProjPredEngineLegacy.cpp rename to source/projectile_prediction/proj_pred_engine_legacy.cpp diff --git a/source/projectile_prediction/Projectile.cpp b/source/projectile_prediction/projectile.cpp similarity index 100% rename from source/projectile_prediction/Projectile.cpp rename to source/projectile_prediction/projectile.cpp diff --git a/source/projectile_prediction/Target.cpp b/source/projectile_prediction/target.cpp similarity index 100% rename from source/projectile_prediction/Target.cpp rename to source/projectile_prediction/target.cpp diff --git a/source/projection/CMakeLists.txt b/source/projection/CMakeLists.txt index 0abf8686..1ca3a279 100644 --- a/source/projection/CMakeLists.txt +++ b/source/projection/CMakeLists.txt @@ -1 +1 @@ -target_sources(omath PRIVATE Camera.cpp) \ No newline at end of file +target_sources(omath PRIVATE camera.cpp) \ No newline at end of file diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2320af96..244f7bb6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -4,25 +4,25 @@ project(unit-tests) include(GoogleTest) add_executable(unit-tests - general/UnitTestPrediction.cpp - general/UnitTestMatrix.cpp - general/UnitTestMat.cpp - general/UnitTestAstar.cpp - general/UnitTestProjection.cpp - general/UnitTestVector3.cpp - general/UnitTestVector2.cpp - general/UnitTestColor.cpp - general/UnitTestVector4.cpp - general/UnitTestLineTrace.cpp - general/UnitTestAngles.cpp - general/UnitTestViewAngles.cpp - general/UnitTestAngle.cpp - general/UnitTestTriangle.cpp - - engines/UnitTestOpenGL.cpp - engines/UnitTestUnityEngine.cpp - engines/UnitTestSourceEngine.cpp - engines/UnitTestIwEngine.cpp + general/unit_test_prediction.cpp + general/unit_test_matrix.cpp + general/unit_test_mat.cpp + general/unit_test_a_star.cpp + general/unit_test_projection.cpp + general/unit_test_vector3.cpp + general/unit_test_vector2.cpp + general/unit_test_color.cpp + general/unit_test_vector4.cpp + general/unit_test_line_trace.cpp + general/unit_test_angles.cpp + general/unit_test_view_angles.cpp + general/unit_test_angle.cpp + general/unit_test_triangle.cpp + + engines/unit_test_open_gl.cpp + engines/unit_test_unity_engine.cpp + engines/unit_test_source_engine.cpp + engines/unit_test_iw_engine.cpp ) diff --git a/tests/engines/UnitTestIwEngine.cpp b/tests/engines/unit_test_iw_engine.cpp similarity index 100% rename from tests/engines/UnitTestIwEngine.cpp rename to tests/engines/unit_test_iw_engine.cpp diff --git a/tests/engines/UnitTestOpenGL.cpp b/tests/engines/unit_test_open_gl.cpp similarity index 100% rename from tests/engines/UnitTestOpenGL.cpp rename to tests/engines/unit_test_open_gl.cpp diff --git a/tests/engines/UnitTestSourceEngine.cpp b/tests/engines/unit_test_source_engine.cpp similarity index 100% rename from tests/engines/UnitTestSourceEngine.cpp rename to tests/engines/unit_test_source_engine.cpp diff --git a/tests/engines/UnitTestUnityEngine.cpp b/tests/engines/unit_test_unity_engine.cpp similarity index 100% rename from tests/engines/UnitTestUnityEngine.cpp rename to tests/engines/unit_test_unity_engine.cpp diff --git a/tests/general/UnitTestAstar.cpp b/tests/general/unit_test_a_star.cpp similarity index 100% rename from tests/general/UnitTestAstar.cpp rename to tests/general/unit_test_a_star.cpp diff --git a/tests/general/UnitTestAngle.cpp b/tests/general/unit_test_angle.cpp similarity index 100% rename from tests/general/UnitTestAngle.cpp rename to tests/general/unit_test_angle.cpp diff --git a/tests/general/UnitTestAngles.cpp b/tests/general/unit_test_angles.cpp similarity index 100% rename from tests/general/UnitTestAngles.cpp rename to tests/general/unit_test_angles.cpp diff --git a/tests/general/UnitTestColor.cpp b/tests/general/unit_test_color.cpp similarity index 100% rename from tests/general/UnitTestColor.cpp rename to tests/general/unit_test_color.cpp diff --git a/tests/general/UnitTestLineTrace.cpp b/tests/general/unit_test_line_trace.cpp similarity index 100% rename from tests/general/UnitTestLineTrace.cpp rename to tests/general/unit_test_line_trace.cpp diff --git a/tests/general/UnitTestMat.cpp b/tests/general/unit_test_mat.cpp similarity index 100% rename from tests/general/UnitTestMat.cpp rename to tests/general/unit_test_mat.cpp diff --git a/tests/general/UnitTestMatrix.cpp b/tests/general/unit_test_matrix.cpp similarity index 100% rename from tests/general/UnitTestMatrix.cpp rename to tests/general/unit_test_matrix.cpp diff --git a/tests/general/UnitTestPrediction.cpp b/tests/general/unit_test_prediction.cpp similarity index 100% rename from tests/general/UnitTestPrediction.cpp rename to tests/general/unit_test_prediction.cpp diff --git a/tests/general/UnitTestProjection.cpp b/tests/general/unit_test_projection.cpp similarity index 100% rename from tests/general/UnitTestProjection.cpp rename to tests/general/unit_test_projection.cpp diff --git a/tests/general/UnitTestTriangle.cpp b/tests/general/unit_test_triangle.cpp similarity index 100% rename from tests/general/UnitTestTriangle.cpp rename to tests/general/unit_test_triangle.cpp diff --git a/tests/general/UnitTestVector2.cpp b/tests/general/unit_test_vector2.cpp similarity index 100% rename from tests/general/UnitTestVector2.cpp rename to tests/general/unit_test_vector2.cpp diff --git a/tests/general/UnitTestVector3.cpp b/tests/general/unit_test_vector3.cpp similarity index 100% rename from tests/general/UnitTestVector3.cpp rename to tests/general/unit_test_vector3.cpp diff --git a/tests/general/UnitTestVector4.cpp b/tests/general/unit_test_vector4.cpp similarity index 100% rename from tests/general/UnitTestVector4.cpp rename to tests/general/unit_test_vector4.cpp diff --git a/tests/general/UnitTestViewAngles.cpp b/tests/general/unit_test_view_angles.cpp similarity index 100% rename from tests/general/UnitTestViewAngles.cpp rename to tests/general/unit_test_view_angles.cpp From 5acd166d8f0982b51d7bc0982ce30719e10d15b7 Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:40:59 +0300 Subject: [PATCH 4/9] fixed include names --- include/omath/angle.hpp | 2 +- include/omath/angles.hpp | 2 +- include/omath/color.hpp | 4 ++-- include/omath/engines/iw_engine/camera.hpp | 4 ++-- include/omath/engines/iw_engine/constants.hpp | 6 +++--- include/omath/engines/iw_engine/formulas.hpp | 2 +- include/omath/engines/opengl_engine/camera.hpp | 4 ++-- include/omath/engines/opengl_engine/constants.hpp | 6 +++--- include/omath/engines/opengl_engine/formulas.hpp | 2 +- include/omath/engines/source_engine/camera.hpp | 4 ++-- include/omath/engines/source_engine/constants.hpp | 6 +++--- include/omath/engines/source_engine/formulas.hpp | 2 +- include/omath/mat.hpp | 4 ++-- include/omath/matrix.hpp | 2 +- include/omath/pathfinding/a_star.hpp | 4 ++-- include/omath/pathfinding/navigation_mesh.hpp | 6 +++--- include/omath/projectile_prediction/proj_pred_engine.hpp | 6 +++--- .../omath/projectile_prediction/proj_pred_engine_legacy.hpp | 6 +++--- include/omath/projectile_prediction/projectile.hpp | 2 +- include/omath/projectile_prediction/target.hpp | 2 +- include/omath/projection/camera.hpp | 6 +++--- include/omath/triangle.hpp | 2 +- include/omath/vector3.hpp | 5 ++--- include/omath/vector4.hpp | 2 +- source/engines/iw_engine/camera.cpp | 4 ++-- source/engines/iw_engine/formulas.cpp | 2 +- source/engines/opengl_engine/camera.cpp | 4 ++-- source/engines/opengl_engine/formulas.cpp | 2 +- source/engines/source_engine/camera.cpp | 4 ++-- source/engines/source_engine/formulas.cpp | 2 +- source/pathfinding/navigation_mesh.cpp | 2 +- source/projectile_prediction/proj_pred_engine_legacy.cpp | 2 +- source/projectile_prediction/projectile.cpp | 4 ++-- source/projectile_prediction/target.cpp | 2 +- source/projection/camera.cpp | 2 +- 35 files changed, 60 insertions(+), 61 deletions(-) diff --git a/include/omath/angle.hpp b/include/omath/angle.hpp index 253604df..0f88ab55 100644 --- a/include/omath/angle.hpp +++ b/include/omath/angle.hpp @@ -3,7 +3,7 @@ // #pragma once -#include "omath/Angles.hpp" +#include "omath/angles.hpp" #include namespace omath diff --git a/include/omath/angles.hpp b/include/omath/angles.hpp index c578afb0..11a69d4b 100644 --- a/include/omath/angles.hpp +++ b/include/omath/angles.hpp @@ -3,8 +3,8 @@ // #pragma once -#include #include +#include namespace omath::angles { diff --git a/include/omath/color.hpp b/include/omath/color.hpp index 54848fcf..3734f371 100644 --- a/include/omath/color.hpp +++ b/include/omath/color.hpp @@ -4,9 +4,9 @@ #pragma once -#include "omath/Vector3.hpp" #include -#include "omath/Vector4.hpp" +#include "omath/vector3.hpp" +#include "omath/vector4.hpp" namespace omath { diff --git a/include/omath/engines/iw_engine/camera.hpp b/include/omath/engines/iw_engine/camera.hpp index cd413f3b..844ff5dc 100644 --- a/include/omath/engines/iw_engine/camera.hpp +++ b/include/omath/engines/iw_engine/camera.hpp @@ -3,8 +3,8 @@ // #pragma once -#include "Constants.hpp" -#include "omath/projection/Camera.hpp" +#include "omath/engines/iw_engine/constants.hpp" +#include "omath/projection/camera.hpp" namespace omath::iw_engine { diff --git a/include/omath/engines/iw_engine/constants.hpp b/include/omath/engines/iw_engine/constants.hpp index bea065ed..ff7d41d9 100644 --- a/include/omath/engines/iw_engine/constants.hpp +++ b/include/omath/engines/iw_engine/constants.hpp @@ -3,9 +3,9 @@ // #pragma once -#include -#include -#include +#include +#include +#include #include namespace omath::iw_engine diff --git a/include/omath/engines/iw_engine/formulas.hpp b/include/omath/engines/iw_engine/formulas.hpp index 72b38535..a604f48a 100644 --- a/include/omath/engines/iw_engine/formulas.hpp +++ b/include/omath/engines/iw_engine/formulas.hpp @@ -3,7 +3,7 @@ // #pragma once -#include "Constants.hpp" +#include "omath/engines/iw_engine/constants.hpp" namespace omath::iw_engine { diff --git a/include/omath/engines/opengl_engine/camera.hpp b/include/omath/engines/opengl_engine/camera.hpp index bbe29025..bfee7c44 100644 --- a/include/omath/engines/opengl_engine/camera.hpp +++ b/include/omath/engines/opengl_engine/camera.hpp @@ -2,8 +2,8 @@ // Created by Orange on 12/23/2024. // #pragma once -#include "Constants.hpp" -#include "omath/projection/Camera.hpp" +#include "omath/engines/opengl_engine/constants.hpp" +#include "omath/projection/camera.hpp" namespace omath::opengl_engine { diff --git a/include/omath/engines/opengl_engine/constants.hpp b/include/omath/engines/opengl_engine/constants.hpp index cca54285..66aac7d7 100644 --- a/include/omath/engines/opengl_engine/constants.hpp +++ b/include/omath/engines/opengl_engine/constants.hpp @@ -3,9 +3,9 @@ // #pragma once -#include -#include -#include +#include +#include +#include #include namespace omath::opengl_engine diff --git a/include/omath/engines/opengl_engine/formulas.hpp b/include/omath/engines/opengl_engine/formulas.hpp index e0e97414..d9dcfe7f 100644 --- a/include/omath/engines/opengl_engine/formulas.hpp +++ b/include/omath/engines/opengl_engine/formulas.hpp @@ -2,7 +2,7 @@ // Created by Orange on 12/23/2024. // #pragma once -#include "Constants.hpp" +#include "omath/engines/opengl_engine/constants.hpp" namespace omath::opengl_engine diff --git a/include/omath/engines/source_engine/camera.hpp b/include/omath/engines/source_engine/camera.hpp index fa7b2b26..baa11e31 100644 --- a/include/omath/engines/source_engine/camera.hpp +++ b/include/omath/engines/source_engine/camera.hpp @@ -2,8 +2,8 @@ // Created by Orange on 12/4/2024. // #pragma once -#include "Constants.hpp" -#include "omath/projection/Camera.hpp" +#include "omath/engines/source_engine/constants.hpp" +#include "omath/projection/camera.hpp" namespace omath::source_engine { diff --git a/include/omath/engines/source_engine/constants.hpp b/include/omath/engines/source_engine/constants.hpp index 6d6d0003..3c7e1df1 100644 --- a/include/omath/engines/source_engine/constants.hpp +++ b/include/omath/engines/source_engine/constants.hpp @@ -3,9 +3,9 @@ // #pragma once -#include -#include -#include +#include +#include +#include #include namespace omath::source_engine diff --git a/include/omath/engines/source_engine/formulas.hpp b/include/omath/engines/source_engine/formulas.hpp index d47d2b62..fd6415e4 100644 --- a/include/omath/engines/source_engine/formulas.hpp +++ b/include/omath/engines/source_engine/formulas.hpp @@ -2,7 +2,7 @@ // Created by Orange on 12/4/2024. // #pragma once -#include "Constants.hpp" +#include "omath/engines/source_engine/constants.hpp" namespace omath::source_engine { diff --git a/include/omath/mat.hpp b/include/omath/mat.hpp index 864ad58d..674612a3 100644 --- a/include/omath/mat.hpp +++ b/include/omath/mat.hpp @@ -4,11 +4,11 @@ #pragma once #include #include +#include #include #include #include -#include "Vector3.hpp" -#include +#include "omath/vector3.hpp" namespace omath { diff --git a/include/omath/matrix.hpp b/include/omath/matrix.hpp index 3043bc5a..a8c19e4d 100644 --- a/include/omath/matrix.hpp +++ b/include/omath/matrix.hpp @@ -2,7 +2,7 @@ #include #include #include -#include "Vector3.hpp" +#include "omath/vector3.hpp" namespace omath { diff --git a/include/omath/pathfinding/a_star.hpp b/include/omath/pathfinding/a_star.hpp index daac92d0..b2a315e8 100644 --- a/include/omath/pathfinding/a_star.hpp +++ b/include/omath/pathfinding/a_star.hpp @@ -4,8 +4,8 @@ #pragma once #include -#include "navigation_mesh.hpp" -#include "omath/Vector3.hpp" +#include "omath/pathfinding/navigation_mesh.hpp" +#include "omath/vector3.hpp" namespace omath::pathfinding { diff --git a/include/omath/pathfinding/navigation_mesh.hpp b/include/omath/pathfinding/navigation_mesh.hpp index 785f619e..f9d8684f 100644 --- a/include/omath/pathfinding/navigation_mesh.hpp +++ b/include/omath/pathfinding/navigation_mesh.hpp @@ -4,17 +4,17 @@ #pragma once -#include "omath/Vector3.hpp" #include -#include #include +#include +#include "omath/vector3.hpp" namespace omath::pathfinding { enum Error { - + }; class NavigationMesh final diff --git a/include/omath/projectile_prediction/proj_pred_engine.hpp b/include/omath/projectile_prediction/proj_pred_engine.hpp index 83adde05..b256641f 100644 --- a/include/omath/projectile_prediction/proj_pred_engine.hpp +++ b/include/omath/projectile_prediction/proj_pred_engine.hpp @@ -2,9 +2,9 @@ // Created by Vlad on 2/23/2025. // #pragma once -#include "Projectile.hpp" -#include "Target.hpp" -#include "omath/Vector3.hpp" +#include "omath/projectile_prediction/target.hpp" +#include "omath/vector3.hpp" +#include "projectile.hpp" namespace omath::projectile_prediction diff --git a/include/omath/projectile_prediction/proj_pred_engine_legacy.hpp b/include/omath/projectile_prediction/proj_pred_engine_legacy.hpp index 0b38e73d..8eb5a5ec 100644 --- a/include/omath/projectile_prediction/proj_pred_engine_legacy.hpp +++ b/include/omath/projectile_prediction/proj_pred_engine_legacy.hpp @@ -5,10 +5,10 @@ #pragma once #include -#include "omath/Vector3.hpp" #include "omath/projectile_prediction/proj_pred_engine.hpp" -#include "omath/projectile_prediction/Projectile.hpp" -#include "omath/projectile_prediction/Target.hpp" +#include "omath/projectile_prediction/projectile.hpp" +#include "omath/projectile_prediction/target.hpp" +#include "omath/vector3.hpp" namespace omath::projectile_prediction diff --git a/include/omath/projectile_prediction/projectile.hpp b/include/omath/projectile_prediction/projectile.hpp index c2e0f7bc..b32b4afc 100644 --- a/include/omath/projectile_prediction/projectile.hpp +++ b/include/omath/projectile_prediction/projectile.hpp @@ -3,7 +3,7 @@ // #pragma once -#include "omath/Vector3.hpp" +#include "omath/vector3.hpp" namespace omath::projectile_prediction { diff --git a/include/omath/projectile_prediction/target.hpp b/include/omath/projectile_prediction/target.hpp index a5e4a12b..a7808585 100644 --- a/include/omath/projectile_prediction/target.hpp +++ b/include/omath/projectile_prediction/target.hpp @@ -3,7 +3,7 @@ // #pragma once -#include "omath/Vector3.hpp" +#include "omath/vector3.hpp" namespace omath::projectile_prediction { diff --git a/include/omath/projection/camera.hpp b/include/omath/projection/camera.hpp index 8fdd05dc..add81ced 100644 --- a/include/omath/projection/camera.hpp +++ b/include/omath/projection/camera.hpp @@ -5,11 +5,11 @@ #pragma once #include -#include -#include -#include "error_codes.hpp" #include +#include +#include #include +#include "omath/projection/error_codes.hpp" namespace omath::projection { diff --git a/include/omath/triangle.hpp b/include/omath/triangle.hpp index a2fc92e1..5c006018 100644 --- a/include/omath/triangle.hpp +++ b/include/omath/triangle.hpp @@ -2,7 +2,7 @@ // Created by Orange on 11/13/2024. // #pragma once -#include "omath/Vector3.hpp" +#include "omath/vector3.hpp" namespace omath { diff --git a/include/omath/vector3.hpp b/include/omath/vector3.hpp index c3ffcd0b..6b769071 100644 --- a/include/omath/vector3.hpp +++ b/include/omath/vector3.hpp @@ -4,12 +4,11 @@ #pragma once -#include "Vector2.hpp" #include #include #include -#include "omath/Angle.hpp" -#include "omath/Vector2.hpp" +#include "omath/angle.hpp" +#include "omath/vector2.hpp" namespace omath { diff --git a/include/omath/vector4.hpp b/include/omath/vector4.hpp index 258cf738..e50528fb 100644 --- a/include/omath/vector4.hpp +++ b/include/omath/vector4.hpp @@ -3,8 +3,8 @@ // #pragma once -#include #include +#include namespace omath diff --git a/source/engines/iw_engine/camera.cpp b/source/engines/iw_engine/camera.cpp index 5b7cfe09..6261e086 100644 --- a/source/engines/iw_engine/camera.cpp +++ b/source/engines/iw_engine/camera.cpp @@ -1,8 +1,8 @@ // // Created by Vlad on 3/17/2025. // -#include "omath/engines/iw_engine/Camera.hpp" -#include "omath/engines/iw_engine/Formulas.hpp" +#include "omath/engines/iw_engine/camera.hpp" +#include "omath/engines/iw_engine/formulas.hpp" namespace omath::iw_engine { diff --git a/source/engines/iw_engine/formulas.cpp b/source/engines/iw_engine/formulas.cpp index 0561b431..3bc47dce 100644 --- a/source/engines/iw_engine/formulas.cpp +++ b/source/engines/iw_engine/formulas.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 3/19/2025. // -#include "omath/engines/iw_engine/Formulas.hpp" +#include "omath/engines/iw_engine/formulas.hpp" namespace omath::iw_engine diff --git a/source/engines/opengl_engine/camera.cpp b/source/engines/opengl_engine/camera.cpp index d7bb7f46..07d4f508 100644 --- a/source/engines/opengl_engine/camera.cpp +++ b/source/engines/opengl_engine/camera.cpp @@ -1,8 +1,8 @@ // // Created by Orange on 12/23/2024. // -#include "omath/engines/opengl_engine/Camera.hpp" -#include "omath/engines/opengl_engine/Formulas.hpp" +#include "omath/engines/opengl_engine/camera.hpp" +#include "omath/engines/opengl_engine/formulas.hpp" namespace omath::opengl_engine diff --git a/source/engines/opengl_engine/formulas.cpp b/source/engines/opengl_engine/formulas.cpp index c2fa6984..be1a6380 100644 --- a/source/engines/opengl_engine/formulas.cpp +++ b/source/engines/opengl_engine/formulas.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 3/19/2025. // -#include "omath/engines/opengl_engine/Formulas.hpp" +#include "omath/engines/opengl_engine/formulas.hpp" namespace omath::opengl_engine diff --git a/source/engines/source_engine/camera.cpp b/source/engines/source_engine/camera.cpp index 2ea32402..2906b550 100644 --- a/source/engines/source_engine/camera.cpp +++ b/source/engines/source_engine/camera.cpp @@ -1,8 +1,8 @@ // // Created by Orange on 12/4/2024. // -#include "omath/engines/source_engine/Camera.hpp" -#include "omath/engines/source_engine/Formulas.hpp" +#include "omath/engines/source_engine/camera.hpp" +#include "omath/engines/source_engine/formulas.hpp" namespace omath::source_engine diff --git a/source/engines/source_engine/formulas.cpp b/source/engines/source_engine/formulas.cpp index 1bbb90a4..10511381 100644 --- a/source/engines/source_engine/formulas.cpp +++ b/source/engines/source_engine/formulas.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 3/19/2025. // -#include +#include namespace omath::source_engine diff --git a/source/pathfinding/navigation_mesh.cpp b/source/pathfinding/navigation_mesh.cpp index f908cc86..2f985eed 100644 --- a/source/pathfinding/navigation_mesh.cpp +++ b/source/pathfinding/navigation_mesh.cpp @@ -3,8 +3,8 @@ // #include "omath/pathfinding/navigation_mesh.hpp" -#include #include +#include namespace omath::pathfinding { std::expected, std::string> NavigationMesh::GetClosestVertex(const Vector3 &point) const diff --git a/source/projectile_prediction/proj_pred_engine_legacy.cpp b/source/projectile_prediction/proj_pred_engine_legacy.cpp index 2e49b787..557fa2a2 100644 --- a/source/projectile_prediction/proj_pred_engine_legacy.cpp +++ b/source/projectile_prediction/proj_pred_engine_legacy.cpp @@ -1,6 +1,6 @@ #include "omath/projectile_prediction/proj_pred_engine_legacy.hpp" #include -#include +#include namespace omath::projectile_prediction { diff --git a/source/projectile_prediction/projectile.cpp b/source/projectile_prediction/projectile.cpp index 193b9a57..c003562f 100644 --- a/source/projectile_prediction/projectile.cpp +++ b/source/projectile_prediction/projectile.cpp @@ -2,9 +2,9 @@ // Created by Vlad on 6/9/2024. // -#include "omath/projectile_prediction/Projectile.hpp" +#include "omath/projectile_prediction/projectile.hpp" -#include +#include namespace omath::projectile_prediction { diff --git a/source/projectile_prediction/target.cpp b/source/projectile_prediction/target.cpp index 5c30ee0a..b0edda4a 100644 --- a/source/projectile_prediction/target.cpp +++ b/source/projectile_prediction/target.cpp @@ -2,7 +2,7 @@ // Created by Vlad on 6/9/2024. // -#include "omath/projectile_prediction/Projectile.hpp" +#include "omath/projectile_prediction/projectile.hpp" namespace omath::prediction diff --git a/source/projection/camera.cpp b/source/projection/camera.cpp index dc0e0707..e50b6ebd 100644 --- a/source/projection/camera.cpp +++ b/source/projection/camera.cpp @@ -1,7 +1,7 @@ // // Created by Vlad on 27.08.2024. // -#include "omath/projection/Camera.hpp" +#include "omath/projection/camera.hpp" namespace omath::projection From b8d79eb8b4802a32c93c98120bb3b26f2421480e Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:43:57 +0300 Subject: [PATCH 5/9] fixed example --- examples/ExampleProjMatBuilder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ExampleProjMatBuilder.cpp b/examples/ExampleProjMatBuilder.cpp index f06cc3c9..737b4e8b 100644 --- a/examples/ExampleProjMatBuilder.cpp +++ b/examples/ExampleProjMatBuilder.cpp @@ -1,11 +1,11 @@ // // Created by Vlad on 3/19/2025. // + + #include -#include -#include -#include #include +#include int main() From a8922230b359a4bb6490149c7b630cf6418dd8bc Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:45:02 +0300 Subject: [PATCH 6/9] fixed name --- examples/CMakeLists.txt | 2 +- .../{ExampleProjMatBuilder.cpp => example_proj_mat_builder.cpp} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename examples/{ExampleProjMatBuilder.cpp => example_proj_mat_builder.cpp} (100%) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 11580f0e..36088b7e 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,4 +1,4 @@ project(examples) -add_executable(ExampleProjectionMatrixBuilder ExampleProjMatBuilder.cpp) +add_executable(ExampleProjectionMatrixBuilder example_proj_mat_builder.cpp) target_link_libraries(ExampleProjectionMatrixBuilder PRIVATE omath::omath) \ No newline at end of file diff --git a/examples/ExampleProjMatBuilder.cpp b/examples/example_proj_mat_builder.cpp similarity index 100% rename from examples/ExampleProjMatBuilder.cpp rename to examples/example_proj_mat_builder.cpp From 713af1b7729507b987fbccbf859c7da24cb7471a Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:46:23 +0300 Subject: [PATCH 7/9] fix --- include/omath/projectile_prediction/proj_pred_engine.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/projectile_prediction/proj_pred_engine.hpp b/include/omath/projectile_prediction/proj_pred_engine.hpp index b256641f..d507dbee 100644 --- a/include/omath/projectile_prediction/proj_pred_engine.hpp +++ b/include/omath/projectile_prediction/proj_pred_engine.hpp @@ -2,9 +2,9 @@ // Created by Vlad on 2/23/2025. // #pragma once +#include "omath/projectile_prediction/projectile.hpp" #include "omath/projectile_prediction/target.hpp" #include "omath/vector3.hpp" -#include "projectile.hpp" namespace omath::projectile_prediction From 59d686e2523179775e82264fb06bf1f2c7d7d083 Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:47:01 +0300 Subject: [PATCH 8/9] fix --- include/omath/projectile_prediction/proj_pred_engine_avx2.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/projectile_prediction/proj_pred_engine_avx2.hpp b/include/omath/projectile_prediction/proj_pred_engine_avx2.hpp index 84a57e5c..f4b925ec 100644 --- a/include/omath/projectile_prediction/proj_pred_engine_avx2.hpp +++ b/include/omath/projectile_prediction/proj_pred_engine_avx2.hpp @@ -2,7 +2,7 @@ // Created by Vlad on 2/23/2025. // #pragma once -#include "proj_pred_engine.hpp" +#include "omath/projectile_prediction/proj_pred_engine.hpp" namespace omath::projectile_prediction { From 17de6d407c17a85463bbcf5605b8ebc6122d4dbb Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 21 Mar 2025 04:48:38 +0300 Subject: [PATCH 9/9] style fix --- include/omath/pathfinding/navigation_mesh.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/omath/pathfinding/navigation_mesh.hpp b/include/omath/pathfinding/navigation_mesh.hpp index f9d8684f..ce763e9a 100644 --- a/include/omath/pathfinding/navigation_mesh.hpp +++ b/include/omath/pathfinding/navigation_mesh.hpp @@ -20,19 +20,19 @@ namespace omath::pathfinding class NavigationMesh final { public: - [[nodiscard]] std::expected, std::string> GetClosestVertex(const Vector3& point) const; - [[nodiscard]] const std::vector>& GetNeighbors(const Vector3& vertex) const; [[nodiscard]] bool Empty() const; + [[nodiscard]] std::vector Serialize() const; + void Deserialize(const std::vector& raw); std::unordered_map, std::vector>> m_verTextMap; }; -} \ No newline at end of file +} // namespace omath::pathfinding