-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renames and more structured include to alleviate build-time issues
- Loading branch information
Showing
128 changed files
with
1,695 additions
and
1,297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../source/Common.hpp" | ||
|
||
#include "../../source/Verbs/Add.inl" | ||
#include "../../source/Verbs/Cerp.inl" | ||
#include "../../source/Verbs/Exponent.inl" | ||
#include "../../source/Verbs/Lerp.inl" | ||
#include "../../source/Verbs/Modulate.inl" | ||
#include "../../source/Verbs/Multiply.inl" | ||
#include "../../source/Verbs/Randomize.inl" | ||
#include "../../source/Verbs/Move.inl" | ||
|
||
|
||
namespace Langulus::Math | ||
{ | ||
|
||
using RTTI::MetaVerb; | ||
|
||
/// Register traits | ||
inline void RegisterTraits() { | ||
(void)MetaOf<Traits::X>(); | ||
(void)MetaOf<Traits::Y>(); | ||
(void)MetaOf<Traits::Z>(); | ||
(void)MetaOf<Traits::W>(); | ||
|
||
(void)MetaOf<Traits::U>(); | ||
(void)MetaOf<Traits::V>(); | ||
(void)MetaOf<Traits::S>(); | ||
(void)MetaOf<Traits::T>(); | ||
|
||
(void)MetaOf<Traits::R>(); | ||
(void)MetaOf<Traits::G>(); | ||
(void)MetaOf<Traits::B>(); | ||
(void)MetaOf<Traits::A>(); | ||
(void)MetaOf<Traits::D>(); | ||
|
||
(void)MetaOf<Traits::Transform>(); | ||
(void)MetaOf<Traits::View>(); | ||
(void)MetaOf<Traits::Projection>(); | ||
(void)MetaOf<Traits::Solid>(); | ||
(void)MetaOf<Traits::Pickable>(); | ||
(void)MetaOf<Traits::Signed>(); | ||
(void)MetaOf<Traits::Bilateral>(); | ||
(void)MetaOf<Traits::Static>(); | ||
(void)MetaOf<Traits::Boundness>(); | ||
(void)MetaOf<Traits::Relative>(); | ||
(void)MetaOf<Traits::Place>(); | ||
(void)MetaOf<Traits::Size>(); | ||
(void)MetaOf<Traits::Aim>(); | ||
(void)MetaOf<Traits::Velocity>(); | ||
(void)MetaOf<Traits::Acceleration>(); | ||
(void)MetaOf<Traits::Sampler>(); | ||
(void)MetaOf<Traits::Level>(); | ||
(void)MetaOf<Traits::Interpolator>(); | ||
(void)MetaOf<Traits::Perspective>(); | ||
} | ||
|
||
/// Register verbs | ||
inline void RegisterVerbs() { | ||
(void)MetaVerb::Of<Verbs::Exponent>(); | ||
(void)MetaVerb::Of<Verbs::Multiply>(); | ||
(void)MetaVerb::Of<Verbs::Modulate>(); | ||
(void)MetaVerb::Of<Verbs::Randomize>(); | ||
(void)MetaVerb::Of<Verbs::Add>(); | ||
(void)MetaVerb::Of<Verbs::Lerp>(); | ||
(void)MetaVerb::Of<Verbs::Cerp>(); | ||
(void)MetaVerb::Of<Verbs::Move>(); | ||
} | ||
|
||
} // namespace Langulus::Math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../source/Mapping.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../source/Matrices/TMatrix.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../source/Vectors/TVector.inl" | ||
#include "../../source/Vectors/TNormal.hpp" | ||
|
||
|
||
namespace Langulus::Math | ||
{ | ||
namespace Inner | ||
{ | ||
/// Combines S and T... to form a normal type | ||
/// @tparam S - size of the vector | ||
template<Count S> | ||
struct NormalTypeGenerator { | ||
template<class... T> | ||
static void Register(TTypeList<T...>&&) { | ||
(((void)MetaOf<TNormal<TVector<T, S>>>()), ...); | ||
} | ||
}; | ||
} // namespace Langulus::Math::Inner | ||
|
||
/// Register all normal types | ||
inline void RegisterNormals() { | ||
using RealTypes = TTypeList< | ||
Float, Double | ||
>; | ||
|
||
Inner::NormalTypeGenerator<2>::Register(RealTypes {}); | ||
Inner::NormalTypeGenerator<3>::Register(RealTypes {}); | ||
Inner::NormalTypeGenerator<4>::Register(RealTypes {}); | ||
} | ||
|
||
} // namespace Langulus::Math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../source/Numbers/TNumber.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../source/Primitives/TBox.hpp" | ||
#include "../../source/Primitives/TCone.hpp" | ||
#include "../../source/Primitives/TCylinder.hpp" | ||
#include "../../source/Primitives/TFrustum.hpp" | ||
#include "../../source/Primitives/TLine.hpp" | ||
#include "../../source/Primitives/TPlane.hpp" | ||
#include "../../source/Primitives/TPoint.hpp" | ||
#include "../../source/Primitives/TPolygon.hpp" | ||
#include "../../source/Primitives/TRay.hpp" | ||
#include "../../source/Primitives/TSphere.hpp" | ||
#include "../../source/Primitives/TTriangle.hpp" | ||
#include "../../source/Primitives/TTorus.hpp" | ||
|
||
namespace Langulus::Math | ||
{ | ||
|
||
/// Register primitives | ||
inline void RegisterPrimitives() { | ||
(void) MetaOf<Box2>(); | ||
(void) MetaOf<Box3>(); | ||
(void) MetaOf<BoxRounded2>(); | ||
(void) MetaOf<BoxRounded3>(); | ||
|
||
(void) MetaOf<Cylinder3>(); | ||
(void) MetaOf<CylinderCapped3>(); | ||
|
||
(void) MetaOf<Frustum2>(); | ||
(void) MetaOf<Frustum3>(); | ||
|
||
(void) MetaOf<Line2>(); | ||
(void) MetaOf<Line3>(); | ||
(void) MetaOf<LineLoop2>(); | ||
(void) MetaOf<LineLoop3>(); | ||
(void) MetaOf<LineStrip2>(); | ||
(void) MetaOf<LineStrip3>(); | ||
|
||
(void) MetaOf<Point1>(); | ||
(void) MetaOf<Point2>(); | ||
(void) MetaOf<Point3>(); | ||
|
||
(void) MetaOf<Polygon2>(); | ||
(void) MetaOf<Polygon3>(); | ||
|
||
(void) MetaOf<Ray2>(); | ||
(void) MetaOf<Ray3>(); | ||
|
||
(void) MetaOf<Triangle2>(); | ||
(void) MetaOf<Triangle3>(); | ||
(void) MetaOf<TriangleStrip2>(); | ||
(void) MetaOf<TriangleStrip3>(); | ||
(void) MetaOf<TriangleFan2>(); | ||
(void) MetaOf<TriangleFan3>(); | ||
} | ||
|
||
} // namespace Langulus::Math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../../source/Primitives/TBox.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../../source/Primitives/TCylinder.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../../source/Primitives/TFrustum.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// | ||
/// Langulus::Math | ||
/// Copyright (c) 2014 Dimo Markov <team@langulus.com> | ||
/// Part of the Langulus framework, see https://langulus.com | ||
/// | ||
/// Distributed under GNU General Public License v3+ | ||
/// See LICENSE file, or https://www.gnu.org/licenses | ||
/// | ||
#pragma once | ||
#include "../../../source/Primitives/TLine.inl" |
Oops, something went wrong.