mirror of https://github.com/mosra/magnum.git
Browse Source
They have no practical use and they only bloat codebase size and add maintenance burden.pull/7/head
104 changed files with 760 additions and 2021 deletions
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_Math_Algorithms_Test_GaussJordanTest_h |
||||
#define Magnum_Math_Algorithms_Test_GaussJordanTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Algorithms { namespace Test { |
||||
|
||||
class GaussJordanTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
GaussJordanTest(); |
||||
|
||||
void singular(); |
||||
void invert(); |
||||
}; |
||||
|
||||
}}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Math_Algorithms_Test_GramSchmidtTest_h |
||||
#define Magnum_Math_Algorithms_Test_GramSchmidtTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Algorithms { namespace Test { |
||||
|
||||
class GramSchmidtTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
GramSchmidtTest(); |
||||
|
||||
void test(); |
||||
}; |
||||
|
||||
}}}} |
||||
|
||||
#endif |
||||
@ -1,34 +0,0 @@
|
||||
#ifndef Magnum_Math_Geometry_Test_DistanceTest_h |
||||
#define Magnum_Math_Geometry_Test_DistanceTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Geometry { namespace Test { |
||||
|
||||
class DistanceTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
DistanceTest(); |
||||
|
||||
void linePoint2D(); |
||||
void linePoint3D(); |
||||
void lineSegmentPoint2D(); |
||||
void lineSegmentPoint3D(); |
||||
}; |
||||
|
||||
}}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Math_Geometry_Test_IntersectionTest_h |
||||
#define Magnum_Math_Geometry_Test_IntersectionTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Geometry { namespace Test { |
||||
|
||||
class IntersectionTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
IntersectionTest(); |
||||
|
||||
void planeLine(); |
||||
}; |
||||
|
||||
}}}} |
||||
|
||||
#endif |
||||
@ -1,36 +0,0 @@
|
||||
#ifndef Magnum_Math_Geometry_Test_RectangleTest_h |
||||
#define Magnum_Math_Geometry_Test_RectangleTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Geometry { namespace Test { |
||||
|
||||
class RectangleTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
RectangleTest(); |
||||
|
||||
void access(); |
||||
void compare(); |
||||
void construct(); |
||||
void size(); |
||||
|
||||
void debug(); |
||||
}; |
||||
|
||||
}}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_ConstantsTest_h |
||||
#define Magnum_Math_Test_ConstantsTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class ConstantsTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
ConstantsTest(); |
||||
|
||||
void constants(); |
||||
void degrad(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,35 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_MathTest_h |
||||
#define Magnum_Math_Test_MathTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class MathTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
MathTest(); |
||||
|
||||
void normalize(); |
||||
void denormalize(); |
||||
void clamp(); |
||||
void pow(); |
||||
void log(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,36 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_MathTypeTraitsTest_h |
||||
#define Magnum_Math_Test_MathTypeTraitsTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class MathTypeTraitsTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
MathTypeTraitsTest(); |
||||
|
||||
void equalsFloatingPoint(); |
||||
void equalsIntegral(); |
||||
|
||||
private: |
||||
template<class T> void _equalsFloatingPoint(); |
||||
template<class T> void _equalsIntegral(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,44 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_Matrix3Test_h |
||||
#define Magnum_Math_Test_Matrix3Test_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class Matrix3Test: public Corrade::TestSuite::Tester { |
||||
public: |
||||
Matrix3Test(); |
||||
|
||||
void constructIdentity(); |
||||
|
||||
void translation(); |
||||
void scaling(); |
||||
void rotation(); |
||||
void reflection(); |
||||
void fromParts(); |
||||
void rotationScalingPart(); |
||||
void rotationPart(); |
||||
void vectorParts(); |
||||
void invertedEuclidean(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,47 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_Matrix4Test_h |
||||
#define Magnum_Math_Test_Matrix4Test_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class Matrix4Test: public Corrade::TestSuite::Tester { |
||||
public: |
||||
Matrix4Test(); |
||||
|
||||
void constructIdentity(); |
||||
|
||||
void translation(); |
||||
void scaling(); |
||||
void rotation(); |
||||
void rotationX(); |
||||
void rotationY(); |
||||
void rotationZ(); |
||||
void reflection(); |
||||
void fromParts(); |
||||
void rotationScalingPart(); |
||||
void rotationPart(); |
||||
void vectorParts(); |
||||
void invertedEuclidean(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,40 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_MatrixTest_h |
||||
#define Magnum_Math_Test_MatrixTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class MatrixTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
MatrixTest(); |
||||
|
||||
void construct(); |
||||
void constructIdentity(); |
||||
void constructZero(); |
||||
void trace(); |
||||
void ij(); |
||||
void determinant(); |
||||
void inverted(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_Point2DTest_h |
||||
#define Magnum_Math_Test_Point2DTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class Point2DTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
Point2DTest(); |
||||
|
||||
void construct(); |
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_Point3DTest_h |
||||
#define Magnum_Math_Test_Point3DTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class Point3DTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
Point3DTest(); |
||||
|
||||
void construct(); |
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,45 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_RectangularMatrixTest_h |
||||
#define Magnum_Math_Test_RectangularMatrixTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class RectangularMatrixTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
RectangularMatrixTest(); |
||||
|
||||
void construct(); |
||||
void constructFromVectors(); |
||||
void constructFrom(); |
||||
void constructZero(); |
||||
void data(); |
||||
|
||||
void negative(); |
||||
void addSubtract(); |
||||
void multiplyDivide(); |
||||
void multiply(); |
||||
|
||||
void transposed(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_SwizzleTest_h |
||||
#define Magnum_Math_Test_SwizzleTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class SwizzleTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
SwizzleTest(); |
||||
|
||||
void components(); |
||||
void constants(); |
||||
void sizes(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,37 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_Vector2Test_h |
||||
#define Magnum_Math_Test_Vector2Test_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class Vector2Test: public Corrade::TestSuite::Tester { |
||||
public: |
||||
Vector2Test(); |
||||
|
||||
void construct(); |
||||
void access(); |
||||
void axes(); |
||||
void scales(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,39 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_Vector3Test_h |
||||
#define Magnum_Math_Test_Vector3Test_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class Vector3Test: public Corrade::TestSuite::Tester { |
||||
public: |
||||
Vector3Test(); |
||||
|
||||
void construct(); |
||||
void access(); |
||||
void cross(); |
||||
void axes(); |
||||
void scales(); |
||||
void twoComponent(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,37 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_Vector4Test_h |
||||
#define Magnum_Math_Test_Vector4Test_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class Vector4Test: public Corrade::TestSuite::Tester { |
||||
public: |
||||
Vector4Test(); |
||||
|
||||
void access(); |
||||
void construct(); |
||||
void threeComponent(); |
||||
void twoComponent(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,46 +0,0 @@
|
||||
#ifndef Magnum_Math_Test_VectorTest_h |
||||
#define Magnum_Math_Test_VectorTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Math { namespace Test { |
||||
|
||||
class VectorTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
VectorTest(); |
||||
|
||||
void construct(); |
||||
void compareComponentWise(); |
||||
void dot(); |
||||
void multiplyDivideComponentWise(); |
||||
void dotSelf(); |
||||
void length(); |
||||
void normalized(); |
||||
void projected(); |
||||
void sum(); |
||||
void product(); |
||||
void min(); |
||||
void max(); |
||||
void angle(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,48 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_CleanTest_h |
||||
#define Magnum_MeshTools_Test_CleanTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class CleanTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
CleanTest(); |
||||
|
||||
void cleanMesh(); |
||||
|
||||
private: |
||||
class Vector1 { |
||||
public: |
||||
static const std::size_t Size = 1; |
||||
typedef std::int32_t Type; |
||||
|
||||
Vector1(): data(0) {} |
||||
Vector1(Type i): data(i) {} |
||||
Type operator[](std::size_t) const { return data; } |
||||
Type& operator[](std::size_t) { return data; } |
||||
bool operator==(Vector1 i) const { return i.data == data; } |
||||
Vector1 operator-(Vector1 i) const { return data-i.data; } |
||||
|
||||
private: |
||||
Type data; |
||||
}; |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_CombineIndexedArraysTest_h |
||||
#define Magnum_MeshTools_Test_CombineIndexedArraysTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class CombineIndexedArraysTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
CombineIndexedArraysTest(); |
||||
|
||||
void wrongIndexCount(); |
||||
void combine(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_CompressIndicesTest_h |
||||
#define Magnum_MeshTools_Test_CompressIndicesTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class CompressIndicesTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
CompressIndicesTest(); |
||||
|
||||
void compressChar(); |
||||
void compressShort(); |
||||
void compressInt(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_FlipNormalsTest_h |
||||
#define Magnum_MeshTools_Test_FlipNormalsTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class FlipNormalsTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
FlipNormalsTest(); |
||||
|
||||
void wrongIndexCount(); |
||||
void flipFaceWinding(); |
||||
void flipNormals(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_GenerateFlatNormalsTest_h |
||||
#define Magnum_MeshTools_Test_GenerateFlatNormalsTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class GenerateFlatNormalsTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
GenerateFlatNormalsTest(); |
||||
|
||||
void wrongIndexCount(); |
||||
void generate(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_InterleaveTest_h |
||||
#define Magnum_MeshTools_Test_InterleaveTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class InterleaveTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
InterleaveTest(); |
||||
|
||||
void attributeCount(); |
||||
void stride(); |
||||
void write(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,51 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_SubdivideTest_h |
||||
#define Magnum_MeshTools_Test_SubdivideTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class SubdivideTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
SubdivideTest(); |
||||
|
||||
void wrongIndexCount(); |
||||
void subdivide(); |
||||
|
||||
private: |
||||
class Vector1 { |
||||
public: |
||||
static const std::size_t Size = 1; |
||||
typedef std::int32_t Type; |
||||
|
||||
Vector1(): data(0) {} |
||||
Vector1(Type i): data(i) {} |
||||
Type operator[](std::size_t) const { return data; } |
||||
Type& operator[](std::size_t) { return data; } |
||||
bool operator==(Vector1 i) const { return i.data == data; } |
||||
Vector1 operator-(Vector1 i) const { return data-i.data; } |
||||
|
||||
private: |
||||
Type data; |
||||
}; |
||||
|
||||
inline static Vector1 interpolator(Vector1 a, Vector1 b) { return (a[0]+b[0])/2; } |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,36 +0,0 @@
|
||||
#ifndef Magnum_MeshTools_Test_TipsifyTest_h |
||||
#define Magnum_MeshTools_Test_TipsifyTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace MeshTools { namespace Test { |
||||
|
||||
class TipsifyTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
TipsifyTest(); |
||||
|
||||
void buildAdjacency(); |
||||
void tipsify(); |
||||
|
||||
private: |
||||
std::vector<std::uint32_t> indices; |
||||
std::size_t vertexCount; |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_AbstractShapeTest_h |
||||
#define Magnum_Physics_Test_AbstractShapeTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class AbstractShapeTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
AbstractShapeTest(); |
||||
|
||||
void debug(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_AxisAlignedBoxTest_h |
||||
#define Magnum_Physics_Test_AxisAlignedBoxTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class AxisAlignedBoxTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
AxisAlignedBoxTest(); |
||||
|
||||
void applyTransformation(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_BoxTest_h |
||||
#define Magnum_Physics_Test_BoxTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class BoxTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
BoxTest(); |
||||
|
||||
void applyTransformation(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_CapsuleTest_h |
||||
#define Magnum_Physics_Test_CapsuleTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include "ShapeTestBase.h" |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class CapsuleTest: public Corrade::TestSuite::Tester, ShapeTestBase { |
||||
public: |
||||
CapsuleTest(); |
||||
|
||||
void applyTransformation(); |
||||
void collisionPoint(); |
||||
void collisionSphere(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_LineTest_h |
||||
#define Magnum_Physics_Test_LineTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class LineTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
LineTest(); |
||||
|
||||
void applyTransformation(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_ObjectShapeTest_h |
||||
#define Magnum_Physics_Test_ObjectShapeTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class ObjectShapeTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
ObjectShapeTest(); |
||||
|
||||
void clean(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_PlaneTest_h |
||||
#define Magnum_Physics_Test_PlaneTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include "ShapeTestBase.h" |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class PlaneTest: public Corrade::TestSuite::Tester, ShapeTestBase { |
||||
public: |
||||
PlaneTest(); |
||||
|
||||
void applyTransformation(); |
||||
void collisionLine(); |
||||
void collisionLineSegment(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,31 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_PointTest_h |
||||
#define Magnum_Physics_Test_PointTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class PointTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
PointTest(); |
||||
|
||||
void applyTransformation(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_ShapeGroupTest_h |
||||
#define Magnum_Physics_Test_ShapeGroupTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class ShapeGroupTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
ShapeGroupTest(); |
||||
|
||||
void copy(); |
||||
void reference(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,35 +0,0 @@
|
||||
#ifndef Magnum_Physics_Test_SphereTest_h |
||||
#define Magnum_Physics_Test_SphereTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include "ShapeTestBase.h" |
||||
|
||||
namespace Magnum { namespace Physics { namespace Test { |
||||
|
||||
class SphereTest: public Corrade::TestSuite::Tester, ShapeTestBase { |
||||
public: |
||||
SphereTest(); |
||||
|
||||
void applyTransformation(); |
||||
void collisionPoint(); |
||||
void collisionLine(); |
||||
void collisionLineSegment(); |
||||
void collisionSphere(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_Primitives_Test_CapsuleTest_h |
||||
#define Magnum_Primitives_Test_CapsuleTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Primitives { namespace Test { |
||||
|
||||
class CapsuleTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
CapsuleTest(); |
||||
|
||||
void withoutTextureCoords(); |
||||
void withTextureCoords(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_Primitives_Test_CylinderTest_h |
||||
#define Magnum_Primitives_Test_CylinderTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Primitives { namespace Test { |
||||
|
||||
class CylinderTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
CylinderTest(); |
||||
|
||||
void withoutAnything(); |
||||
void withTextureCoordsAndCaps(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_Primitives_Test_UVSphereTest_h |
||||
#define Magnum_Primitives_Test_UVSphereTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Primitives { namespace Test { |
||||
|
||||
class UVSphereTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
UVSphereTest(); |
||||
|
||||
void withoutTextureCoords(); |
||||
void withTextureCoords(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,38 +0,0 @@
|
||||
#ifndef Magnum_SceneGraph_Test_AnimableTest_h |
||||
#define Magnum_SceneGraph_Test_AnimableTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace SceneGraph { namespace Test { |
||||
|
||||
class AnimableTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
AnimableTest(); |
||||
|
||||
void state(); |
||||
void step(); |
||||
void duration(); |
||||
void repeat(); |
||||
void stop(); |
||||
void pause(); |
||||
|
||||
void debug(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,38 +0,0 @@
|
||||
#ifndef Magnum_SceneGraph_Test_CameraTest_h |
||||
#define Magnum_SceneGraph_Test_CameraTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace SceneGraph { namespace Test { |
||||
|
||||
class CameraTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
CameraTest(); |
||||
|
||||
void fixAspectRatio(); |
||||
void defaultProjection2D(); |
||||
void defaultProjection3D(); |
||||
void projection2D(); |
||||
void orthographic(); |
||||
void perspective(); |
||||
void projectionSizeViewport(); |
||||
void draw(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,36 +0,0 @@
|
||||
#ifndef Magnum_SceneGraph_Test_ObjectTest_h |
||||
#define Magnum_SceneGraph_Test_ObjectTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace SceneGraph { namespace Test { |
||||
|
||||
class ObjectTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
ObjectTest(); |
||||
|
||||
void parenting(); |
||||
void scene(); |
||||
void absoluteTransformation(); |
||||
void transformations(); |
||||
void setClean(); |
||||
void bulkSetClean(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_SceneGraph_Test_SceneTest_h |
||||
#define Magnum_SceneGraph_Test_SceneTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace SceneGraph { namespace Test { |
||||
|
||||
class SceneTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
SceneTest(); |
||||
|
||||
void transformation(); |
||||
void parent(); |
||||
}; |
||||
|
||||
}}} |
||||
|
||||
#endif |
||||
@ -1,34 +0,0 @@
|
||||
#ifndef Magnum_Test_ArrayTest_h |
||||
#define Magnum_Test_ArrayTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Test { |
||||
|
||||
class ArrayTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
ArrayTest(); |
||||
|
||||
void construct(); |
||||
void constexprConstruct(); |
||||
void equality(); |
||||
void access(); |
||||
}; |
||||
|
||||
}} |
||||
|
||||
#endif |
||||
@ -1,49 +0,0 @@
|
||||
#ifndef Magnum_Test_ColorTest_h |
||||
#define Magnum_Test_ColorTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Test { |
||||
|
||||
class ColorTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
ColorTest(); |
||||
|
||||
void access(); |
||||
|
||||
void fromDenormalized(); |
||||
void fromNormalized(); |
||||
|
||||
void fromHue(); |
||||
void fromSaturation(); |
||||
void fromValue(); |
||||
|
||||
void hue(); |
||||
void saturation(); |
||||
void value(); |
||||
|
||||
void hsv(); |
||||
void hsvOverflow(); |
||||
void hsvAlpha(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}} |
||||
|
||||
#endif |
||||
@ -1,32 +0,0 @@
|
||||
#ifndef Magnum_Test_MeshTest_h |
||||
#define Magnum_Test_MeshTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Test { |
||||
|
||||
class MeshTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
MeshTest(); |
||||
|
||||
void debug(); |
||||
void configuration(); |
||||
}; |
||||
|
||||
}} |
||||
|
||||
#endif |
||||
@ -1,38 +0,0 @@
|
||||
#ifndef Magnum_Test_ResourceManagerTest_h |
||||
#define Magnum_Test_ResourceManagerTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Test { |
||||
|
||||
class ResourceManagerTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
ResourceManagerTest(); |
||||
|
||||
void state(); |
||||
void stateFallback(); |
||||
void stateDisallowed(); |
||||
void basic(); |
||||
void residentPolicy(); |
||||
void referenceCountedPolicy(); |
||||
void manualPolicy(); |
||||
void loader(); |
||||
}; |
||||
|
||||
}} |
||||
|
||||
#endif |
||||
@ -1,33 +0,0 @@
|
||||
#ifndef Magnum_Test_SwizzleTest_h |
||||
#define Magnum_Test_SwizzleTest_h |
||||
/*
|
||||
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz> |
||||
|
||||
This file is part of Magnum. |
||||
|
||||
Magnum is free software: you can redistribute it and/or modify |
||||
it under the terms of the GNU Lesser General Public License version 3 |
||||
only, as published by the Free Software Foundation. |
||||
|
||||
Magnum is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU Lesser General Public License version 3 for more details. |
||||
*/ |
||||
|
||||
#include <TestSuite/Tester.h> |
||||
|
||||
namespace Magnum { namespace Test { |
||||
|
||||
class SwizzleTest: public Corrade::TestSuite::Tester { |
||||
public: |
||||
SwizzleTest(); |
||||
|
||||
void rgba(); |
||||
void type(); |
||||
void defaultType(); |
||||
}; |
||||
|
||||
}} |
||||
|
||||
#endif |
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue