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 84% rename from examples/ExampleProjMatBuilder.cpp rename to examples/example_proj_mat_builder.cpp index f06cc3c9..737b4e8b 100644 --- a/examples/ExampleProjMatBuilder.cpp +++ b/examples/example_proj_mat_builder.cpp @@ -1,11 +1,11 @@ // // Created by Vlad on 3/19/2025. // + + #include -#include -#include -#include #include +#include int main() diff --git a/include/omath/Angle.hpp b/include/omath/angle.hpp similarity index 99% rename from include/omath/Angle.hpp rename to 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 similarity index 100% rename from include/omath/Angles.hpp rename to 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/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/Color.hpp b/include/omath/color.hpp similarity index 98% rename from include/omath/Color.hpp rename to 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 similarity index 87% rename from include/omath/engines/iw_engine/Camera.hpp rename to 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 similarity index 86% rename from include/omath/engines/iw_engine/Constants.hpp rename to include/omath/engines/iw_engine/constants.hpp index 88979158..ff7d41d9 100644 --- a/include/omath/engines/iw_engine/Constants.hpp +++ b/include/omath/engines/iw_engine/constants.hpp @@ -3,10 +3,10 @@ // #pragma once -#include -#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 similarity index 86% rename from include/omath/engines/iw_engine/Formulas.hpp rename to include/omath/engines/iw_engine/formulas.hpp index 1249c983..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 { @@ -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/Camera.hpp b/include/omath/engines/opengl_engine/camera.hpp similarity index 86% rename from include/omath/engines/opengl_engine/Camera.hpp rename to 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 similarity index 86% rename from include/omath/engines/opengl_engine/Constants.hpp rename to include/omath/engines/opengl_engine/constants.hpp index d06873b8..66aac7d7 100644 --- a/include/omath/engines/opengl_engine/Constants.hpp +++ b/include/omath/engines/opengl_engine/constants.hpp @@ -3,10 +3,10 @@ // #pragma once -#include -#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 similarity index 91% rename from include/omath/engines/opengl_engine/Formulas.hpp rename to 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 similarity index 86% rename from include/omath/engines/source_engine/Camera.hpp rename to 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 similarity index 86% rename from include/omath/engines/source_engine/Constants.hpp rename to include/omath/engines/source_engine/constants.hpp index 6c331b29..3c7e1df1 100644 --- a/include/omath/engines/source_engine/Constants.hpp +++ b/include/omath/engines/source_engine/constants.hpp @@ -3,10 +3,10 @@ // #pragma once -#include -#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 similarity index 91% rename from include/omath/engines/source_engine/Formulas.hpp rename to 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 similarity index 99% rename from include/omath/Mat.hpp rename to 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 similarity index 98% rename from include/omath/Matrix.hpp rename to 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/Astar.hpp b/include/omath/pathfinding/a_star.hpp similarity index 91% rename from include/omath/pathfinding/Astar.hpp rename to include/omath/pathfinding/a_star.hpp index 9cbcedbb..b2a315e8 100644 --- a/include/omath/pathfinding/Astar.hpp +++ b/include/omath/pathfinding/a_star.hpp @@ -4,8 +4,8 @@ #pragma once #include -#include "NavigationMesh.hpp" -#include "omath/Vector3.hpp" +#include "omath/pathfinding/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 91% rename from include/omath/pathfinding/NavigationMesh.hpp rename to include/omath/pathfinding/navigation_mesh.hpp index 785f619e..ce763e9a 100644 --- a/include/omath/pathfinding/NavigationMesh.hpp +++ b/include/omath/pathfinding/navigation_mesh.hpp @@ -4,35 +4,35 @@ #pragma once -#include "omath/Vector3.hpp" #include -#include #include +#include +#include "omath/vector3.hpp" namespace omath::pathfinding { enum Error { - + }; 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 diff --git a/include/omath/projectile_prediction/ProjPredEngine.hpp b/include/omath/projectile_prediction/proj_pred_engine.hpp similarity index 77% rename from include/omath/projectile_prediction/ProjPredEngine.hpp rename to include/omath/projectile_prediction/proj_pred_engine.hpp index 83adde05..d507dbee 100644 --- a/include/omath/projectile_prediction/ProjPredEngine.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/projectile.hpp" +#include "omath/projectile_prediction/target.hpp" +#include "omath/vector3.hpp" namespace omath::projectile_prediction diff --git a/include/omath/projectile_prediction/ProjPredEngineAVX2.hpp b/include/omath/projectile_prediction/proj_pred_engine_avx2.hpp similarity index 94% rename from include/omath/projectile_prediction/ProjPredEngineAVX2.hpp rename to include/omath/projectile_prediction/proj_pred_engine_avx2.hpp index ffc0c5ed..f4b925ec 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 "omath/projectile_prediction/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 86% rename from include/omath/projectile_prediction/ProjPredEngineLegacy.hpp rename to include/omath/projectile_prediction/proj_pred_engine_legacy.hpp index f22308d6..8eb5a5ec 100644 --- a/include/omath/projectile_prediction/ProjPredEngineLegacy.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/ProjPredEngine.hpp" -#include "omath/projectile_prediction/Projectile.hpp" -#include "omath/projectile_prediction/Target.hpp" +#include "omath/projectile_prediction/proj_pred_engine.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 similarity index 92% rename from include/omath/projectile_prediction/Projectile.hpp rename to 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 similarity index 95% rename from include/omath/projectile_prediction/Target.hpp rename to 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 similarity index 98% rename from include/omath/projection/Camera.hpp rename to include/omath/projection/camera.hpp index c6bacbba..add81ced 100644 --- a/include/omath/projection/Camera.hpp +++ b/include/omath/projection/camera.hpp @@ -5,11 +5,11 @@ #pragma once #include -#include -#include -#include "ErrorCodes.hpp" #include +#include +#include #include +#include "omath/projection/error_codes.hpp" namespace omath::projection { 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/Triangle.hpp b/include/omath/triangle.hpp similarity index 98% rename from include/omath/Triangle.hpp rename to 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/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 98% rename from include/omath/Vector3.hpp rename to 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 similarity index 99% rename from include/omath/Vector4.hpp rename to 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/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/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/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 97% rename from source/collision/LineTracer.cpp rename to source/collision/line_tracer.cpp index 05f5bef7..0dfc7f54 100644 --- a/source/collision/LineTracer.cpp +++ b/source/collision/line_tracer.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/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 92% rename from source/engines/iw_engine/Camera.cpp rename to 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 similarity index 97% rename from source/engines/iw_engine/Formulas.cpp rename to 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/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 92% rename from source/engines/opengl_engine/Camera.cpp rename to 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 similarity index 96% rename from source/engines/opengl_engine/Formulas.cpp rename to 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/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 92% rename from source/engines/source_engine/Camera.cpp rename to 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 similarity index 96% rename from source/engines/source_engine/Formulas.cpp rename to 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/Matrix.cpp b/source/matrix.cpp similarity index 100% rename from source/Matrix.cpp rename to source/matrix.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 98% rename from source/pathfinding/Astar.cpp rename to source/pathfinding/a_star.cpp index 4d553e72..aba160f1 100644 --- a/source/pathfinding/Astar.cpp +++ b/source/pathfinding/a_star.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/navigation_mesh.cpp similarity index 98% rename from source/pathfinding/NavigationMesh.cpp rename to source/pathfinding/navigation_mesh.cpp index e5491a3a..2f985eed 100644 --- a/source/pathfinding/NavigationMesh.cpp +++ b/source/pathfinding/navigation_mesh.cpp @@ -1,10 +1,10 @@ // // Created by Vlad on 28.07.2024. // -#include "omath/pathfinding/NavigationMesh.hpp" +#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/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 67% rename from source/projectile_prediction/ProjPredEngine.cpp rename to source/projectile_prediction/proj_pred_engine.cpp index 7be6708b..e8e7f92c 100644 --- a/source/projectile_prediction/ProjPredEngine.cpp +++ b/source/projectile_prediction/proj_pred_engine.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/proj_pred_engine_avx2.cpp similarity index 99% rename from source/projectile_prediction/ProjPredEngineAVX2.cpp rename to source/projectile_prediction/proj_pred_engine_avx2.cpp index 8a4f8f63..771c8e0f 100644 --- a/source/projectile_prediction/ProjPredEngineAVX2.cpp +++ b/source/projectile_prediction/proj_pred_engine_avx2.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/proj_pred_engine_legacy.cpp similarity index 97% rename from source/projectile_prediction/ProjPredEngineLegacy.cpp rename to source/projectile_prediction/proj_pred_engine_legacy.cpp index 3a8c7652..557fa2a2 100644 --- a/source/projectile_prediction/ProjPredEngineLegacy.cpp +++ b/source/projectile_prediction/proj_pred_engine_legacy.cpp @@ -1,6 +1,6 @@ -#include "omath/projectile_prediction/ProjPredEngineLegacy.hpp" +#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 similarity index 87% rename from source/projectile_prediction/Projectile.cpp rename to 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 similarity index 57% rename from source/projectile_prediction/Target.cpp rename to 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/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/source/projection/Camera.cpp b/source/projection/camera.cpp similarity index 65% rename from source/projection/Camera.cpp rename to 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 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 92% rename from tests/general/UnitTestAstar.cpp rename to tests/general/unit_test_a_star.cpp index da65f9f4..e33f8c0a 100644 --- a/tests/general/UnitTestAstar.cpp +++ b/tests/general/unit_test_a_star.cpp @@ -2,7 +2,7 @@ // Created by Vlad on 18.08.2024. // #include -#include +#include TEST(UnitTestAstar, FindingRightPath) 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 98% rename from tests/general/UnitTestLineTrace.cpp rename to tests/general/unit_test_line_trace.cpp index 3c0bf044..0b72d2c8 100644 --- a/tests/general/UnitTestLineTrace.cpp +++ b/tests/general/unit_test_line_trace.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/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 91% rename from tests/general/UnitTestPrediction.cpp rename to tests/general/unit_test_prediction.cpp index c77c4386..94e8ae48 100644 --- a/tests/general/UnitTestPrediction.cpp +++ b/tests/general/unit_test_prediction.cpp @@ -1,5 +1,5 @@ #include -#include +#include TEST(UnitTestPrediction, PredictionTest) { 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 56% rename from tests/general/UnitTestViewAngles.cpp rename to tests/general/unit_test_view_angles.cpp index 97c90e3e..28605456 100644 --- a/tests/general/UnitTestViewAngles.cpp +++ b/tests/general/unit_test_view_angles.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