From 9bd42d9c8c836892d3975ab107e5f46081ed983b Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 15:43:39 +0300 Subject: [PATCH 01/10] added files --- include/omath/3d_primitives/box.hpp | 58 +++++++++++++++++++++-- include/omath/3d_primitives/mesh.hpp | 11 +++-- source/3d_primitives/box.cpp | 45 ------------------ tests/general/unit_test_primitive_box.cpp | 11 +++++ 4 files changed, 72 insertions(+), 53 deletions(-) create mode 100644 tests/general/unit_test_primitive_box.cpp diff --git a/include/omath/3d_primitives/box.hpp b/include/omath/3d_primitives/box.hpp index b039825f..d93d4011 100644 --- a/include/omath/3d_primitives/box.hpp +++ b/include/omath/3d_primitives/box.hpp @@ -3,14 +3,64 @@ // #pragma once +#include "mesh.hpp" +#include "omath/engines/opengl_engine/camera.hpp" +#include "omath/engines/opengl_engine/traits/mesh_trait.hpp" #include "omath/linear_algebra/triangle.hpp" #include "omath/linear_algebra/vector3.hpp" #include namespace omath::primitives { + using BoxMesh = Mesh, + std::array, 8>, std::array, 12>>; + + template [[nodiscard]] - std::array>, 12> create_box(const Vector3& top, const Vector3& bottom, - const Vector3& dir_forward, const Vector3& dir_right, - float ratio = 4.f) noexcept; -} + BoxMeshType + create_box(const Vector3& top, const Vector3& bottom, const Vector3& dir_forward, + const Vector3& dir_right, const float ratio = 4.f) noexcept + { + const auto height = top.distance_to(bottom); + const auto side_size = height / ratio; + + // corner layout (0‑3 bottom, 4‑7 top) + std::array, 8> p; + p[0] = bottom + (dir_forward + dir_right) * side_size; // front‑right‑bottom + p[1] = bottom + (dir_forward - dir_right) * side_size; // front‑left‑bottom + p[2] = bottom + (-dir_forward + dir_right) * side_size; // back‑right‑bottom + p[3] = bottom + (-dir_forward - dir_right) * side_size; // back‑left‑bottom + p[4] = top + (dir_forward + dir_right) * side_size; // front‑right‑top + p[5] = top + (dir_forward - dir_right) * side_size; // front‑left‑top + p[6] = top + (-dir_forward + dir_right) * side_size; // back‑right‑top + p[7] = top + (-dir_forward - dir_right) * side_size; // back‑left‑top + + std::array, 12> poly; + + // bottom face (+Y up ⇒ wind CW when viewed from above) + poly[0] = {0, 2, 3}; + poly[1] = {0, 3, 1}; + + // top face + poly[2] = {4, 7, 6}; + poly[3] = {4, 5, 7}; + + // front face + poly[4] = {0, 5, 1}; + poly[5] = {0, 4, 5}; + + // right face + poly[6] = {0, 6, 2}; + poly[7] = {0, 4, 6}; + + // back face + poly[8] = {2, 7, 3}; + poly[9] = {2, 6, 7}; + + // left face + poly[10] = {1, 7, 5}; + poly[11] = {1, 3, 7}; + + return BoxMeshType{std::move(p), std::move(poly)}; + } +} // namespace omath::primitives diff --git a/include/omath/3d_primitives/mesh.hpp b/include/omath/3d_primitives/mesh.hpp index bac55130..ff20e7a4 100644 --- a/include/omath/3d_primitives/mesh.hpp +++ b/include/omath/3d_primitives/mesh.hpp @@ -25,7 +25,8 @@ namespace omath::primitives template concept HasNormal = requires(T vertex) { vertex.normal; }; template concept HasUv = requires(T vertex) { vertex.uv; }; - template> + template, + class VboType = std::vector, class EboType = std::vector>> class Mesh final { public: @@ -33,8 +34,8 @@ namespace omath::primitives using VertexType = VertType; private: - using Vbo = std::vector; - using Ebo = std::vector>; + using Vbo = VboType; + using Ebo = EboType; public: Vbo m_vertex_buffer; @@ -102,7 +103,9 @@ namespace omath::primitives VectorType vertex_position_to_world_space(const Vector3& vertex_position) const requires HasPosition { - auto abs_vec = get_to_world_matrix() * mat_column_from_vector(vertex_position); + auto abs_vec = get_to_world_matrix() + * mat_column_from_vector( + vertex_position); return {abs_vec.at(0, 0), abs_vec.at(1, 0), abs_vec.at(2, 0)}; } diff --git a/source/3d_primitives/box.cpp b/source/3d_primitives/box.cpp index 9c251b98..a805a78e 100644 --- a/source/3d_primitives/box.cpp +++ b/source/3d_primitives/box.cpp @@ -5,50 +5,5 @@ namespace omath::primitives { - std::array>, 12> create_box(const Vector3& top, const Vector3& bottom, - const Vector3& dir_forward, - const Vector3& dir_right, const float ratio) noexcept - { - const auto height = top.distance_to(bottom); - const auto side_size = height / ratio; - // corner layout (0‑3 bottom, 4‑7 top) - std::array, 8> p; - p[0] = bottom + (dir_forward + dir_right) * side_size; // front‑right‑bottom - p[1] = bottom + (dir_forward - dir_right) * side_size; // front‑left‑bottom - p[2] = bottom + (-dir_forward + dir_right) * side_size; // back‑right‑bottom - p[3] = bottom + (-dir_forward - dir_right) * side_size; // back‑left‑bottom - p[4] = top + (dir_forward + dir_right) * side_size; // front‑right‑top - p[5] = top + (dir_forward - dir_right) * side_size; // front‑left‑top - p[6] = top + (-dir_forward + dir_right) * side_size; // back‑right‑top - p[7] = top + (-dir_forward - dir_right) * side_size; // back‑left‑top - - std::array>, 12> poly; - - // bottom face (+Y up ⇒ wind CW when viewed from above) - poly[0] = {p[0], p[2], p[3]}; - poly[1] = {p[0], p[3], p[1]}; - - // top face - poly[2] = {p[4], p[7], p[6]}; - poly[3] = {p[4], p[5], p[7]}; - - // front face - poly[4] = {p[0], p[5], p[1]}; - poly[5] = {p[0], p[4], p[5]}; - - // right face - poly[6] = {p[0], p[6], p[2]}; - poly[7] = {p[0], p[4], p[6]}; - - // back face - poly[8] = {p[2], p[7], p[3]}; - poly[9] = {p[2], p[6], p[7]}; - - // left face - poly[10] = {p[1], p[7], p[5]}; - poly[11] = {p[1], p[3], p[7]}; - - return poly; - } } // namespace omath::primitives diff --git a/tests/general/unit_test_primitive_box.cpp b/tests/general/unit_test_primitive_box.cpp new file mode 100644 index 00000000..bac7a982 --- /dev/null +++ b/tests/general/unit_test_primitive_box.cpp @@ -0,0 +1,11 @@ +// +// Created by Vladislav on 11.01.2026. +// +#include "omath/3d_primitives/box.hpp" +#include + +TEST(test, test) +{ + auto result = omath::primitives::create_box({0.f, 30.f, 0.f}, {}, omath::opengl_engine::k_abs_forward, + omath::opengl_engine::k_abs_right); +} \ No newline at end of file From ee2f084e0bfc1f6e9140f6e2ed62d7f117aef408 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 17:07:38 +0300 Subject: [PATCH 02/10] added stuff --- include/omath/3d_primitives/plane.hpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/include/omath/3d_primitives/plane.hpp b/include/omath/3d_primitives/plane.hpp index 26f5871d..1539398f 100644 --- a/include/omath/3d_primitives/plane.hpp +++ b/include/omath/3d_primitives/plane.hpp @@ -3,14 +3,24 @@ // #pragma once +#include "mesh.hpp" +#include "omath/engines/opengl_engine/camera.hpp" +#include "omath/engines/opengl_engine/mesh.hpp" +#include "omath/engines/opengl_engine/traits/mesh_trait.hpp" #include "omath/linear_algebra/triangle.hpp" #include "omath/linear_algebra/vector3.hpp" #include namespace omath::primitives { + using PlaneMesh = Mesh, + std::array, 8>, std::array, 12>>; [[nodiscard]] - std::array>, 2> create_plane(const Vector3& vertex_a, - const Vector3& vertex_b, - const Vector3& direction, float size) noexcept; -} + std::array>, 2> create_plane(const Vector3& vertex_a, const Vector3& vertex_b, + const Vector3& direction, float size) noexcept + { + const auto second_vertex_a = vertex_a + direction * size; + return std::array{Triangle{second_vertex_a, vertex_a, vertex_b}, + Triangle{second_vertex_a, vertex_b + direction * size, vertex_b}}; + } +} // namespace omath::primitives From d6746f6243cddc9b68a6db472a24f1c97c3d4bda Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 17:21:23 +0300 Subject: [PATCH 03/10] ppatch --- include/omath/3d_primitives/plane.hpp | 18 ++++++++++++------ source/3d_primitives/plane.cpp | 12 +----------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/include/omath/3d_primitives/plane.hpp b/include/omath/3d_primitives/plane.hpp index 1539398f..03555041 100644 --- a/include/omath/3d_primitives/plane.hpp +++ b/include/omath/3d_primitives/plane.hpp @@ -13,14 +13,20 @@ namespace omath::primitives { - using PlaneMesh = Mesh, - std::array, 8>, std::array, 12>>; + using PlaneMesh = Mesh, + std::array, 4>, std::array, 6>>; [[nodiscard]] - std::array>, 2> create_plane(const Vector3& vertex_a, const Vector3& vertex_b, - const Vector3& direction, float size) noexcept + PlaneMesh create_plane(const Vector3& vertex_a, const Vector3& vertex_b, + const Vector3& direction, const float size) noexcept { const auto second_vertex_a = vertex_a + direction * size; - return std::array{Triangle{second_vertex_a, vertex_a, vertex_b}, - Triangle{second_vertex_a, vertex_b + direction * size, vertex_b}}; + const auto second_vertex_b = vertex_b + direction * size; + + std::array, 4> grid = {vertex_a, vertex_b, second_vertex_a, second_vertex_b}; + + std::array, 6> poly; + poly[0] = {}; + + return PlaneMesh(std::move(grid), std::move(poly)); } } // namespace omath::primitives diff --git a/source/3d_primitives/plane.cpp b/source/3d_primitives/plane.cpp index c5418109..dc931d73 100644 --- a/source/3d_primitives/plane.cpp +++ b/source/3d_primitives/plane.cpp @@ -5,15 +5,5 @@ namespace omath::primitives { - std::array>, 2> create_plane(const Vector3& vertex_a, - const Vector3& vertex_b, - const Vector3& direction, const float size) noexcept - { - const auto second_vertex_a = vertex_a + direction * size; - return std::array - { - Triangle{second_vertex_a, vertex_a, vertex_b}, - Triangle{second_vertex_a, vertex_b + direction * size, vertex_b} - }; - } + } // namespace omath::primitives \ No newline at end of file From 68505a77aecb7bbcb4c406ebf51754c5c1cd97a5 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 18:59:34 +0300 Subject: [PATCH 04/10] fix --- include/omath/3d_primitives/box.hpp | 2 +- include/omath/3d_primitives/plane.hpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/omath/3d_primitives/box.hpp b/include/omath/3d_primitives/box.hpp index d93d4011..1454e857 100644 --- a/include/omath/3d_primitives/box.hpp +++ b/include/omath/3d_primitives/box.hpp @@ -13,7 +13,7 @@ namespace omath::primitives { using BoxMesh = Mesh, - std::array, 8>, std::array, 12>>; + std::array, 8>, std::array, 12>>; template [[nodiscard]] diff --git a/include/omath/3d_primitives/plane.hpp b/include/omath/3d_primitives/plane.hpp index 03555041..f6c53a84 100644 --- a/include/omath/3d_primitives/plane.hpp +++ b/include/omath/3d_primitives/plane.hpp @@ -14,7 +14,8 @@ namespace omath::primitives { using PlaneMesh = Mesh, - std::array, 4>, std::array, 6>>; + std::array, 4>, std::array, 2>>; + template [[nodiscard]] PlaneMesh create_plane(const Vector3& vertex_a, const Vector3& vertex_b, const Vector3& direction, const float size) noexcept @@ -24,8 +25,9 @@ namespace omath::primitives std::array, 4> grid = {vertex_a, vertex_b, second_vertex_a, second_vertex_b}; - std::array, 6> poly; - poly[0] = {}; + std::array, 2> poly; + poly[0] = {1, 1, 2}; + poly[1] = {0, 1, 3}; return PlaneMesh(std::move(grid), std::move(poly)); } From 906ddd75d4de88b94e6de3811f90f5f201e82b0a Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 19:01:39 +0300 Subject: [PATCH 05/10] fix --- include/omath/3d_primitives/plane.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/3d_primitives/plane.hpp b/include/omath/3d_primitives/plane.hpp index f6c53a84..ea7f3cbb 100644 --- a/include/omath/3d_primitives/plane.hpp +++ b/include/omath/3d_primitives/plane.hpp @@ -29,6 +29,6 @@ namespace omath::primitives poly[0] = {1, 1, 2}; poly[1] = {0, 1, 3}; - return PlaneMesh(std::move(grid), std::move(poly)); + return PlaneMeshType(std::move(grid), std::move(poly)); } } // namespace omath::primitives From 26fda5402e26fbd74497e8a00601b89ab2b97f50 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 20:59:19 +0300 Subject: [PATCH 06/10] fix --- include/omath/3d_primitives/mesh.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/3d_primitives/mesh.hpp b/include/omath/3d_primitives/mesh.hpp index ff20e7a4..c0ac6e47 100644 --- a/include/omath/3d_primitives/mesh.hpp +++ b/include/omath/3d_primitives/mesh.hpp @@ -31,7 +31,7 @@ namespace omath::primitives { public: using VectorType = VertType::VectorType; - using VertexType = VertType; + using VertexType = VboType::value_type; private: using Vbo = VboType; From 2a2832c75fe80bf5c4dbf6b3e295fdb70799c9bb Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 27 Jan 2026 00:33:35 +0300 Subject: [PATCH 07/10] added opengl primitives --- include/omath/3d_primitives/box.hpp | 10 +++------- include/omath/3d_primitives/plane.hpp | 4 +--- .../omath/engines/opengl_engine/primitives.hpp | 17 +++++++++++++++++ tests/general/unit_test_primitive_box.cpp | 3 ++- 4 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 include/omath/engines/opengl_engine/primitives.hpp diff --git a/include/omath/3d_primitives/box.hpp b/include/omath/3d_primitives/box.hpp index 1454e857..0e1a7e14 100644 --- a/include/omath/3d_primitives/box.hpp +++ b/include/omath/3d_primitives/box.hpp @@ -12,14 +12,10 @@ namespace omath::primitives { - using BoxMesh = Mesh, - std::array, 8>, std::array, 12>>; - - template + template [[nodiscard]] - BoxMeshType - create_box(const Vector3& top, const Vector3& bottom, const Vector3& dir_forward, - const Vector3& dir_right, const float ratio = 4.f) noexcept + BoxMeshType create_box(const Vector3& top, const Vector3& bottom, const Vector3& dir_forward, + const Vector3& dir_right, const float ratio = 4.f) noexcept { const auto height = top.distance_to(bottom); const auto side_size = height / ratio; diff --git a/include/omath/3d_primitives/plane.hpp b/include/omath/3d_primitives/plane.hpp index ea7f3cbb..d5c83326 100644 --- a/include/omath/3d_primitives/plane.hpp +++ b/include/omath/3d_primitives/plane.hpp @@ -13,11 +13,9 @@ namespace omath::primitives { - using PlaneMesh = Mesh, - std::array, 4>, std::array, 2>>; template [[nodiscard]] - PlaneMesh create_plane(const Vector3& vertex_a, const Vector3& vertex_b, + PlaneMeshType create_plane(const Vector3& vertex_a, const Vector3& vertex_b, const Vector3& direction, const float size) noexcept { const auto second_vertex_a = vertex_a + direction * size; diff --git a/include/omath/engines/opengl_engine/primitives.hpp b/include/omath/engines/opengl_engine/primitives.hpp new file mode 100644 index 00000000..9390237b --- /dev/null +++ b/include/omath/engines/opengl_engine/primitives.hpp @@ -0,0 +1,17 @@ +// +// Created by Vladislav on 27.01.2026. +// + +#pragma once +#include "mesh.hpp" +#include "omath/engines/opengl_engine/traits/mesh_trait.hpp" +#include "omath/linear_algebra/vector3.hpp" +#include +namespace omath::opengl_engine +{ + using BoxMesh = primitives::Mesh, std::array, 8>, + std::array, 12>>; + + using PlaneMesh = primitives::Mesh, + std::array, 4>, std::array, 2>>; +} // namespace omath::opengl_engine \ No newline at end of file diff --git a/tests/general/unit_test_primitive_box.cpp b/tests/general/unit_test_primitive_box.cpp index bac7a982..3d7345fb 100644 --- a/tests/general/unit_test_primitive_box.cpp +++ b/tests/general/unit_test_primitive_box.cpp @@ -2,10 +2,11 @@ // Created by Vladislav on 11.01.2026. // #include "omath/3d_primitives/box.hpp" +#include "omath/engines/opengl_engine/primitives.hpp" #include TEST(test, test) { - auto result = omath::primitives::create_box({0.f, 30.f, 0.f}, {}, omath::opengl_engine::k_abs_forward, + auto result = omath::primitives::create_box({0.f, 30.f, 0.f}, {}, omath::opengl_engine::k_abs_forward, omath::opengl_engine::k_abs_right); } \ No newline at end of file From d2cf62bdbe948e58de8ba1b7e9ba7c5cb97e59b2 Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 27 Jan 2026 00:37:23 +0300 Subject: [PATCH 08/10] added primitives to other engine triplets --- .../engines/frostbite_engine/primitives.hpp | 17 +++++++++++++++++ include/omath/engines/iw_engine/primitives.hpp | 17 +++++++++++++++++ .../omath/engines/source_engine/primitives.hpp | 17 +++++++++++++++++ .../omath/engines/unity_engine/primitives.hpp | 17 +++++++++++++++++ .../omath/engines/unreal_engine/primitives.hpp | 17 +++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 include/omath/engines/frostbite_engine/primitives.hpp create mode 100644 include/omath/engines/iw_engine/primitives.hpp create mode 100644 include/omath/engines/source_engine/primitives.hpp create mode 100644 include/omath/engines/unity_engine/primitives.hpp create mode 100644 include/omath/engines/unreal_engine/primitives.hpp diff --git a/include/omath/engines/frostbite_engine/primitives.hpp b/include/omath/engines/frostbite_engine/primitives.hpp new file mode 100644 index 00000000..a08764f8 --- /dev/null +++ b/include/omath/engines/frostbite_engine/primitives.hpp @@ -0,0 +1,17 @@ +// +// Created by Vladislav on 27.01.2026. +// + +#pragma once +#include "mesh.hpp" +#include "omath/engines/frostbite_engine/traits/mesh_trait.hpp" +#include "omath/linear_algebra/vector3.hpp" +#include +namespace omath::frostbite_engine +{ + using BoxMesh = primitives::Mesh, std::array, 8>, + std::array, 12>>; + + using PlaneMesh = primitives::Mesh, + std::array, 4>, std::array, 2>>; +} // namespace omath::frostbite_engine \ No newline at end of file diff --git a/include/omath/engines/iw_engine/primitives.hpp b/include/omath/engines/iw_engine/primitives.hpp new file mode 100644 index 00000000..f95d46c6 --- /dev/null +++ b/include/omath/engines/iw_engine/primitives.hpp @@ -0,0 +1,17 @@ +// +// Created by Vladislav on 27.01.2026. +// + +#pragma once +#include "mesh.hpp" +#include "omath/engines/iw_engine/traits/mesh_trait.hpp" +#include "omath/linear_algebra/vector3.hpp" +#include +namespace omath::iw_engine +{ + using BoxMesh = primitives::Mesh, std::array, 8>, + std::array, 12>>; + + using PlaneMesh = primitives::Mesh, + std::array, 4>, std::array, 2>>; +} // namespace omath::iw_engine \ No newline at end of file diff --git a/include/omath/engines/source_engine/primitives.hpp b/include/omath/engines/source_engine/primitives.hpp new file mode 100644 index 00000000..f8a9d264 --- /dev/null +++ b/include/omath/engines/source_engine/primitives.hpp @@ -0,0 +1,17 @@ +// +// Created by Vladislav on 27.01.2026. +// + +#pragma once +#include "mesh.hpp" +#include "omath/engines/source_engine/traits/mesh_trait.hpp" +#include "omath/linear_algebra/vector3.hpp" +#include +namespace omath::source_engine +{ + using BoxMesh = primitives::Mesh, std::array, 8>, + std::array, 12>>; + + using PlaneMesh = primitives::Mesh, + std::array, 4>, std::array, 2>>; +} // namespace omath::source_engine \ No newline at end of file diff --git a/include/omath/engines/unity_engine/primitives.hpp b/include/omath/engines/unity_engine/primitives.hpp new file mode 100644 index 00000000..7e4c55d8 --- /dev/null +++ b/include/omath/engines/unity_engine/primitives.hpp @@ -0,0 +1,17 @@ +// +// Created by Vladislav on 27.01.2026. +// + +#pragma once +#include "mesh.hpp" +#include "omath/engines/unity_engine/traits/mesh_trait.hpp" +#include "omath/linear_algebra/vector3.hpp" +#include +namespace omath::unity_engine +{ + using BoxMesh = primitives::Mesh, std::array, 8>, + std::array, 12>>; + + using PlaneMesh = primitives::Mesh, + std::array, 4>, std::array, 2>>; +} // namespace omath::unity_engine \ No newline at end of file diff --git a/include/omath/engines/unreal_engine/primitives.hpp b/include/omath/engines/unreal_engine/primitives.hpp new file mode 100644 index 00000000..2a71e764 --- /dev/null +++ b/include/omath/engines/unreal_engine/primitives.hpp @@ -0,0 +1,17 @@ +// +// Created by Vladislav on 27.01.2026. +// + +#pragma once +#include "mesh.hpp" +#include "omath/engines/unreal_engine/traits/mesh_trait.hpp" +#include "omath/linear_algebra/vector3.hpp" +#include +namespace omath::unreal_engine +{ + using BoxMesh = primitives::Mesh, std::array, 8>, + std::array, 12>>; + + using PlaneMesh = primitives::Mesh, + std::array, 4>, std::array, 2>>; +} // namespace omath::unreal_engine \ No newline at end of file From 5fcac74a25b75ced4809f09a74fb254a2956aa2a Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 27 Jan 2026 00:39:34 +0300 Subject: [PATCH 09/10] fixed naming --- include/omath/engines/frostbite_engine/primitives.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/engines/frostbite_engine/primitives.hpp b/include/omath/engines/frostbite_engine/primitives.hpp index a08764f8..3398d39b 100644 --- a/include/omath/engines/frostbite_engine/primitives.hpp +++ b/include/omath/engines/frostbite_engine/primitives.hpp @@ -13,5 +13,5 @@ namespace omath::frostbite_engine std::array, 12>>; using PlaneMesh = primitives::Mesh, - std::array, 4>, std::array, 2>>; + std::array, 4>, std::array, 2>>; } // namespace omath::frostbite_engine \ No newline at end of file From 91a96fb97ab26979065881b6ea9e4827d08c8e2b Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 27 Jan 2026 00:51:17 +0300 Subject: [PATCH 10/10] dropped uselss cpp files --- include/omath/engines/unity_engine/camera.hpp | 2 +- source/3d_primitives/box.cpp | 9 --------- source/3d_primitives/plane.cpp | 9 --------- 3 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 source/3d_primitives/box.cpp delete mode 100644 source/3d_primitives/plane.cpp diff --git a/include/omath/engines/unity_engine/camera.hpp b/include/omath/engines/unity_engine/camera.hpp index 642290a3..bc3d6d2b 100644 --- a/include/omath/engines/unity_engine/camera.hpp +++ b/include/omath/engines/unity_engine/camera.hpp @@ -9,5 +9,5 @@ namespace omath::unity_engine { - using Camera = projection::Camera; + using Camera = projection::Camera; } // namespace omath::unity_engine \ No newline at end of file diff --git a/source/3d_primitives/box.cpp b/source/3d_primitives/box.cpp deleted file mode 100644 index a805a78e..00000000 --- a/source/3d_primitives/box.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// -// Created by Vlad on 4/18/2025. -// -#include "omath/3d_primitives/box.hpp" - -namespace omath::primitives -{ - -} // namespace omath::primitives diff --git a/source/3d_primitives/plane.cpp b/source/3d_primitives/plane.cpp deleted file mode 100644 index dc931d73..00000000 --- a/source/3d_primitives/plane.cpp +++ /dev/null @@ -1,9 +0,0 @@ -// -// Created by Vlad on 8/28/2025. -// -#include "omath/3d_primitives/plane.hpp" - -namespace omath::primitives -{ - -} // namespace omath::primitives \ No newline at end of file