diff --git a/include/omath/engines/frostbite_engine/mesh.hpp b/include/omath/engines/frostbite_engine/mesh.hpp new file mode 100644 index 0000000..a6dda9f --- /dev/null +++ b/include/omath/engines/frostbite_engine/mesh.hpp @@ -0,0 +1,12 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include "constants.hpp" +#include "omath/3d_primitives/mesh.hpp" +#include "traits/mesh_trait.hpp" + +namespace omath::frostbite_engine +{ + using Mesh = primitives::Mesh; +} \ No newline at end of file diff --git a/include/omath/engines/frostbite_engine/traits/mesh_trait.hpp b/include/omath/engines/frostbite_engine/traits/mesh_trait.hpp new file mode 100644 index 0000000..e113c4e --- /dev/null +++ b/include/omath/engines/frostbite_engine/traits/mesh_trait.hpp @@ -0,0 +1,19 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include +#include + +namespace omath::frostbite_engine +{ + class MeshTrait final + { + public: + [[nodiscard]] + static Mat4X4 rotation_matrix(const ViewAngles& rotation) + { + return frostbite_engine::rotation_matrix(rotation); + } + }; +} // namespace omath::frostbite_engine \ No newline at end of file diff --git a/include/omath/engines/iw_engine/mesh.hpp b/include/omath/engines/iw_engine/mesh.hpp new file mode 100644 index 0000000..1556b19 --- /dev/null +++ b/include/omath/engines/iw_engine/mesh.hpp @@ -0,0 +1,12 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include "constants.hpp" +#include "omath/3d_primitives/mesh.hpp" +#include "traits/mesh_trait.hpp" + +namespace omath::iw_engine +{ + using Mesh = primitives::Mesh; +} \ No newline at end of file diff --git a/include/omath/engines/iw_engine/traits/mesh_trait.hpp b/include/omath/engines/iw_engine/traits/mesh_trait.hpp new file mode 100644 index 0000000..4cbc5c9 --- /dev/null +++ b/include/omath/engines/iw_engine/traits/mesh_trait.hpp @@ -0,0 +1,19 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include +#include + +namespace omath::iw_engine +{ + class MeshTrait final + { + public: + [[nodiscard]] + static Mat4X4 rotation_matrix(const ViewAngles& rotation) + { + return iw_engine::rotation_matrix(rotation); + } + }; +} // namespace omath::iw_engine \ No newline at end of file diff --git a/include/omath/engines/opengl_engine/mesh.hpp b/include/omath/engines/opengl_engine/mesh.hpp new file mode 100644 index 0000000..d2db7e5 --- /dev/null +++ b/include/omath/engines/opengl_engine/mesh.hpp @@ -0,0 +1,12 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include "constants.hpp" +#include "omath/3d_primitives/mesh.hpp" +#include "traits/mesh_trait.hpp" + +namespace omath::opengl_engine +{ + using Mesh = primitives::Mesh; +} \ No newline at end of file diff --git a/include/omath/engines/opengl_engine/traits/mesh_trait.hpp b/include/omath/engines/opengl_engine/traits/mesh_trait.hpp new file mode 100644 index 0000000..2de8f8e --- /dev/null +++ b/include/omath/engines/opengl_engine/traits/mesh_trait.hpp @@ -0,0 +1,19 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include +#include + +namespace omath::opengl_engine +{ + class MeshTrait final + { + public: + [[nodiscard]] + static Mat4X4 rotation_matrix(const ViewAngles& rotation) + { + return opengl_engine::rotation_matrix(rotation); + } + }; +} // namespace omath::opengl_engine \ No newline at end of file diff --git a/include/omath/engines/source_engine/traits/mesh_trait.hpp b/include/omath/engines/source_engine/traits/mesh_trait.hpp index d2418d5..2320465 100644 --- a/include/omath/engines/source_engine/traits/mesh_trait.hpp +++ b/include/omath/engines/source_engine/traits/mesh_trait.hpp @@ -4,6 +4,7 @@ #pragma once #include #include + namespace omath::source_engine { class MeshTrait final @@ -15,4 +16,4 @@ namespace omath::source_engine return source_engine::rotation_matrix(rotation); } }; -} \ No newline at end of file +} // namespace omath::source_engine \ No newline at end of file diff --git a/include/omath/engines/unity_engine/mesh.hpp b/include/omath/engines/unity_engine/mesh.hpp new file mode 100644 index 0000000..6c78b2f --- /dev/null +++ b/include/omath/engines/unity_engine/mesh.hpp @@ -0,0 +1,12 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include "constants.hpp" +#include "omath/3d_primitives/mesh.hpp" +#include "traits/mesh_trait.hpp" + +namespace omath::unity_engine +{ + using Mesh = primitives::Mesh; +} \ No newline at end of file diff --git a/include/omath/engines/unity_engine/traits/mesh_trait.hpp b/include/omath/engines/unity_engine/traits/mesh_trait.hpp new file mode 100644 index 0000000..5627820 --- /dev/null +++ b/include/omath/engines/unity_engine/traits/mesh_trait.hpp @@ -0,0 +1,19 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include +#include + +namespace omath::unity_engine +{ + class MeshTrait final + { + public: + [[nodiscard]] + static Mat4X4 rotation_matrix(const ViewAngles& rotation) + { + return unity_engine::rotation_matrix(rotation); + } + }; +} // namespace omath::unity_engine \ No newline at end of file diff --git a/include/omath/engines/unreal_engine/mesh.hpp b/include/omath/engines/unreal_engine/mesh.hpp new file mode 100644 index 0000000..8fb7345 --- /dev/null +++ b/include/omath/engines/unreal_engine/mesh.hpp @@ -0,0 +1,12 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include "constants.hpp" +#include "omath/3d_primitives/mesh.hpp" +#include "traits/mesh_trait.hpp" + +namespace omath::unreal_engine +{ + using Mesh = primitives::Mesh; +} \ No newline at end of file diff --git a/include/omath/engines/unreal_engine/traits/mesh_trait.hpp b/include/omath/engines/unreal_engine/traits/mesh_trait.hpp new file mode 100644 index 0000000..5da0a2d --- /dev/null +++ b/include/omath/engines/unreal_engine/traits/mesh_trait.hpp @@ -0,0 +1,19 @@ +// +// Created by Vladislav on 09.11.2025. +// +#pragma once +#include +#include + +namespace omath::unreal_engine +{ + class MeshTrait final + { + public: + [[nodiscard]] + static Mat4X4 rotation_matrix(const ViewAngles& rotation) + { + return unreal_engine::rotation_matrix(rotation); + } + }; +} // namespace omath::unreal_engine \ No newline at end of file