Merge pull request #33 from orange-cpp/u/orange-cpp/changed-file-naming

U/orange cpp/changed file naming
This commit is contained in:
2025-03-21 04:50:56 +03:00
committed by GitHub
74 changed files with 109 additions and 110 deletions

View File

@@ -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)

View File

@@ -1,11 +1,11 @@
//
// Created by Vlad on 3/19/2025.
//
#include <iostream>
#include <omath/engines/opengl_engine/Camera.hpp>
#include <omath/engines/opengl_engine/Formulas.hpp>
#include <omath/projection/Camera.hpp>
#include <print>
#include <omath/engines/opengl_engine/formulas.hpp>
int main()

View File

@@ -3,7 +3,7 @@
//
#pragma once
#include "omath/Angles.hpp"
#include "omath/angles.hpp"
#include <algorithm>
namespace omath

View File

@@ -3,8 +3,8 @@
//
#pragma once
#include <numbers>
#include <cmath>
#include <numbers>
namespace omath::angles
{

View File

@@ -4,9 +4,9 @@
#pragma once
#include "omath/Vector3.hpp"
#include <cstdint>
#include "omath/Vector4.hpp"
#include "omath/vector3.hpp"
#include "omath/vector4.hpp"
namespace omath
{

View File

@@ -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
{

View File

@@ -3,10 +3,10 @@
//
#pragma once
#include <omath/Vector3.hpp>
#include <omath/Mat.hpp>
#include <omath/Angle.hpp>
#include <omath/ViewAngles.hpp>
#include <omath/vector3.hpp>
#include <omath/mat.hpp>
#include <omath/angle.hpp>
#include <omath/view_angles.hpp>
namespace omath::iw_engine
{

View File

@@ -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

View File

@@ -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
{

View File

@@ -3,10 +3,10 @@
//
#pragma once
#include <omath/Vector3.hpp>
#include <omath/Mat.hpp>
#include <omath/Angle.hpp>
#include <omath/ViewAngles.hpp>
#include <omath/angle.hpp>
#include <omath/mat.hpp>
#include <omath/vector3.hpp>
#include <omath/view_angles.hpp>
namespace omath::opengl_engine
{

View File

@@ -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

View File

@@ -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
{

View File

@@ -3,10 +3,10 @@
//
#pragma once
#include <omath/Vector3.hpp>
#include <omath/Mat.hpp>
#include <omath/Angle.hpp>
#include <omath/ViewAngles.hpp>
#include <omath/vector3.hpp>
#include <omath/mat.hpp>
#include <omath/angle.hpp>
#include <omath/view_angles.hpp>
namespace omath::source_engine
{

View File

@@ -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
{

View File

@@ -4,11 +4,11 @@
#pragma once
#include <algorithm>
#include <array>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include <utility>
#include "Vector3.hpp"
#include <iomanip>
#include "omath/vector3.hpp"
namespace omath
{

View File

@@ -2,7 +2,7 @@
#include <initializer_list>
#include <memory>
#include <string>
#include "Vector3.hpp"
#include "omath/vector3.hpp"
namespace omath
{

View File

@@ -4,8 +4,8 @@
#pragma once
#include <vector>
#include "NavigationMesh.hpp"
#include "omath/Vector3.hpp"
#include "omath/pathfinding/navigation_mesh.hpp"
#include "omath/vector3.hpp"
namespace omath::pathfinding
{

View File

@@ -4,10 +4,10 @@
#pragma once
#include "omath/Vector3.hpp"
#include <expected>
#include <vector>
#include <string>
#include <vector>
#include "omath/vector3.hpp"
namespace omath::pathfinding
{
@@ -20,19 +20,19 @@ namespace omath::pathfinding
class NavigationMesh final
{
public:
[[nodiscard]]
std::expected<Vector3<float>, std::string> GetClosestVertex(const Vector3<float>& point) const;
[[nodiscard]]
const std::vector<Vector3<float>>& GetNeighbors(const Vector3<float>& vertex) const;
[[nodiscard]]
bool Empty() const;
[[nodiscard]] std::vector<uint8_t> Serialize() const;
void Deserialize(const std::vector<uint8_t>& raw);
std::unordered_map<Vector3<float>, std::vector<Vector3<float>>> m_verTextMap;
};
}
} // namespace omath::pathfinding

View File

@@ -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

View File

@@ -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
{

View File

@@ -5,10 +5,10 @@
#pragma once
#include <optional>
#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

View File

@@ -3,7 +3,7 @@
//
#pragma once
#include "omath/Vector3.hpp"
#include "omath/vector3.hpp"
namespace omath::projectile_prediction
{

View File

@@ -3,7 +3,7 @@
//
#pragma once
#include "omath/Vector3.hpp"
#include "omath/vector3.hpp"
namespace omath::projectile_prediction
{

View File

@@ -5,11 +5,11 @@
#pragma once
#include <expected>
#include <omath/Mat.hpp>
#include <omath/Vector3.hpp>
#include "ErrorCodes.hpp"
#include <omath/Angle.hpp>
#include <omath/Mat.hpp>
#include <omath/vector3.hpp>
#include <type_traits>
#include "omath/projection/error_codes.hpp"
namespace omath::projection
{

View File

@@ -2,7 +2,7 @@
// Created by Orange on 11/13/2024.
//
#pragma once
#include "omath/Vector3.hpp"
#include "omath/vector3.hpp"
namespace omath
{

View File

@@ -4,12 +4,11 @@
#pragma once
#include "Vector2.hpp"
#include <cstdint>
#include <expected>
#include <functional>
#include "omath/Angle.hpp"
#include "omath/Vector2.hpp"
#include "omath/angle.hpp"
#include "omath/vector2.hpp"
namespace omath
{

View File

@@ -3,8 +3,8 @@
//
#pragma once
#include <omath/Vector3.hpp>
#include <algorithm>
#include <omath/vector3.hpp>
namespace omath

View File

@@ -1,5 +1,5 @@
target_sources(omath PRIVATE
Matrix.cpp
matrix.cpp
color.cpp
)

View File

@@ -1,3 +1,3 @@
target_sources(omath PRIVATE
LineTracer.cpp
line_tracer.cpp
)

View File

@@ -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
{

View File

@@ -1 +1 @@
target_sources(omath PRIVATE Camera.cpp Formulas.cpp)
target_sources(omath PRIVATE camera.cpp formulas.cpp)

View File

@@ -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
{

View File

@@ -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

View File

@@ -1 +1 @@
target_sources(omath PRIVATE Camera.cpp Formulas.cpp)
target_sources(omath PRIVATE camera.cpp formulas.cpp)

View File

@@ -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

View File

@@ -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

View File

@@ -1 +1 @@
target_sources(omath PRIVATE Camera.cpp Formulas.cpp)
target_sources(omath PRIVATE camera.cpp formulas.cpp)

View File

@@ -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

View File

@@ -1,7 +1,7 @@
//
// Created by Vlad on 3/19/2025.
//
#include <omath/engines/source_engine/Formulas.hpp>
#include <omath/engines/source_engine/formulas.hpp>
namespace omath::source_engine

View File

@@ -1 +1 @@
target_sources(omath PRIVATE NavigationMesh.cpp Astar.cpp)
target_sources(omath PRIVATE navigation_mesh.cpp a_star.cpp)

View File

@@ -1,7 +1,7 @@
//
// Created by Vlad on 28.07.2024.
//
#include "omath/pathfinding/Astar.hpp"
#include "omath/pathfinding/a_star.hpp"
#include <algorithm>
#include <optional>

View File

@@ -1,10 +1,10 @@
//
// Created by Vlad on 28.07.2024.
//
#include "omath/pathfinding/NavigationMesh.hpp"
#include "omath/pathfinding/navigation_mesh.hpp"
#include <stdexcept>
#include <algorithm>
#include <stdexcept>
namespace omath::pathfinding
{
std::expected<Vector3<float>, std::string> NavigationMesh::GetClosestVertex(const Vector3<float> &point) const

View File

@@ -1 +1 @@
target_sources(omath PRIVATE ProjPredEngineLegacy.cpp Projectile.cpp Target.cpp ProjPredEngineAVX2.cpp ProjPredEngine.cpp)
target_sources(omath PRIVATE proj_pred_engine_legacy.cpp projectile.cpp target.cpp proj_pred_engine_avx2.cpp proj_pred_engine.cpp)

View File

@@ -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

View File

@@ -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

View File

@@ -1,6 +1,6 @@
#include "omath/projectile_prediction/ProjPredEngineLegacy.hpp"
#include "omath/projectile_prediction/proj_pred_engine_legacy.hpp"
#include <cmath>
#include <omath/Angles.hpp>
#include <omath/angles.hpp>
namespace omath::projectile_prediction
{

View File

@@ -2,9 +2,9 @@
// Created by Vlad on 6/9/2024.
//
#include "omath/projectile_prediction/Projectile.hpp"
#include "omath/projectile_prediction/projectile.hpp"
#include <omath/engines/source_engine/Formulas.hpp>
#include <omath/engines/source_engine/formulas.hpp>
namespace omath::projectile_prediction
{

View File

@@ -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

View File

@@ -1 +1 @@
target_sources(omath PRIVATE Camera.cpp)
target_sources(omath PRIVATE camera.cpp)

View File

@@ -1,7 +1,7 @@
//
// Created by Vlad on 27.08.2024.
//
#include "omath/projection/Camera.hpp"
#include "omath/projection/camera.hpp"
namespace omath::projection

View File

@@ -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
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/UnitTestOpenGL.cpp
engines/UnitTestUnityEngine.cpp
engines/UnitTestSourceEngine.cpp
engines/UnitTestIwEngine.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
)

View File

@@ -2,7 +2,7 @@
// Created by Vlad on 18.08.2024.
//
#include <gtest/gtest.h>
#include <omath/pathfinding/Astar.hpp>
#include <omath/pathfinding/a_star.hpp>
TEST(UnitTestAstar, FindingRightPath)

View File

@@ -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"

View File

@@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include <omath/projectile_prediction/ProjPredEngineLegacy.hpp>
#include <omath/projectile_prediction/proj_pred_engine_legacy.hpp>
TEST(UnitTestPrediction, PredictionTest)
{

View File

@@ -1,4 +1,4 @@
//
// Created by Orange on 11/30/2024.
//
#include <omath/ViewAngles.hpp>
#include <omath/view_angles.hpp>