Browse Source

Making test declarations more compact.

Yet again I experienced how insanely large this thing got over the
years.
pull/85/head
Vladimír Vondruš 11 years ago
parent
commit
c71dc12503
  1. 7
      src/Magnum/Audio/Test/AbstractImporterTest.cpp
  2. 7
      src/Magnum/Audio/Test/BufferTest.cpp
  3. 7
      src/Magnum/Audio/Test/RendererTest.cpp
  4. 7
      src/Magnum/Audio/Test/SourceTest.cpp
  5. 17
      src/Magnum/DebugTools/Test/CapsuleRendererTest.cpp
  6. 17
      src/Magnum/DebugTools/Test/CylinderRendererTest.cpp
  7. 17
      src/Magnum/DebugTools/Test/ForceRendererTest.cpp
  8. 9
      src/Magnum/DebugTools/Test/LineSegmentRendererTest.cpp
  9. 9
      src/Magnum/Math/Algorithms/Test/GaussJordanTest.cpp
  10. 9
      src/Magnum/Math/Algorithms/Test/GramSchmidtTest.cpp
  11. 9
      src/Magnum/Math/Algorithms/Test/SvdTest.cpp
  12. 15
      src/Magnum/Math/Geometry/Test/DistanceTest.cpp
  13. 9
      src/Magnum/Math/Geometry/Test/IntersectionTest.cpp
  14. 15
      src/Magnum/Math/Test/AngleTest.cpp
  15. 41
      src/Magnum/Math/Test/BoolVectorTest.cpp
  16. 63
      src/Magnum/Math/Test/ComplexTest.cpp
  17. 9
      src/Magnum/Math/Test/ConstantsTest.cpp
  18. 45
      src/Magnum/Math/Test/DualComplexTest.cpp
  19. 57
      src/Magnum/Math/Test/DualQuaternionTest.cpp
  20. 25
      src/Magnum/Math/Test/DualTest.cpp
  21. 75
      src/Magnum/Math/Test/FunctionsTest.cpp
  22. 61
      src/Magnum/Math/Test/Matrix3Test.cpp
  23. 71
      src/Magnum/Math/Test/Matrix4Test.cpp
  24. 37
      src/Magnum/Math/Test/MatrixTest.cpp
  25. 69
      src/Magnum/Math/Test/QuaternionTest.cpp
  26. 43
      src/Magnum/Math/Test/RangeTest.cpp
  27. 49
      src/Magnum/Math/Test/RectangularMatrixTest.cpp
  28. 15
      src/Magnum/Math/Test/SwizzleTest.cpp
  29. 19
      src/Magnum/Math/Test/TypeTraitsTest.cpp
  30. 23
      src/Magnum/Math/Test/UnitTest.cpp
  31. 45
      src/Magnum/Math/Test/Vector2Test.cpp
  32. 43
      src/Magnum/Math/Test/Vector3Test.cpp
  33. 39
      src/Magnum/Math/Test/Vector4Test.cpp
  34. 101
      src/Magnum/Math/Test/VectorTest.cpp
  35. 11
      src/Magnum/MeshTools/Test/CombineIndexedArraysTest.cpp
  36. 11
      src/Magnum/MeshTools/Test/CompressIndicesTest.cpp
  37. 7
      src/Magnum/MeshTools/Test/DuplicateTest.cpp
  38. 11
      src/Magnum/MeshTools/Test/FlipNormalsTest.cpp
  39. 9
      src/Magnum/MeshTools/Test/GenerateFlatNormalsTest.cpp
  40. 23
      src/Magnum/MeshTools/Test/InterleaveTest.cpp
  41. 7
      src/Magnum/MeshTools/Test/RemoveDuplicatesTest.cpp
  42. 9
      src/Magnum/MeshTools/Test/SubdivideTest.cpp
  43. 13
      src/Magnum/MeshTools/Test/TransformTest.cpp
  44. 13
      src/Magnum/Primitives/Test/CapsuleTest.cpp
  45. 9
      src/Magnum/Primitives/Test/CircleTest.cpp
  46. 11
      src/Magnum/Primitives/Test/CylinderTest.cpp
  47. 7
      src/Magnum/Primitives/Test/IcosphereTest.cpp
  48. 11
      src/Magnum/Primitives/Test/UVSphereTest.cpp
  49. 19
      src/Magnum/SceneGraph/Test/AnimableTest.cpp
  50. 23
      src/Magnum/SceneGraph/Test/CameraTest.cpp
  51. 29
      src/Magnum/SceneGraph/Test/DualComplexTransformationTest.cpp
  52. 29
      src/Magnum/SceneGraph/Test/DualQuaternionTransformationTest.cpp
  53. 31
      src/Magnum/SceneGraph/Test/MatrixTransformation2DTest.cpp
  54. 31
      src/Magnum/SceneGraph/Test/MatrixTransformation3DTest.cpp
  55. 35
      src/Magnum/SceneGraph/Test/ObjectTest.cpp
  56. 31
      src/Magnum/SceneGraph/Test/RigidMatrixTransformation2DTest.cpp
  57. 31
      src/Magnum/SceneGraph/Test/RigidMatrixTransformation3DTest.cpp
  58. 9
      src/Magnum/SceneGraph/Test/SceneTest.cpp
  59. 23
      src/Magnum/SceneGraph/Test/TranslationTransformationTest.cpp
  60. 9
      src/Magnum/Shaders/Test/DistanceFieldVectorGLTest.cpp
  61. 15
      src/Magnum/Shaders/Test/FlatGLTest.cpp
  62. 11
      src/Magnum/Shaders/Test/MeshVisualizerGLTest.cpp
  63. 23
      src/Magnum/Shaders/Test/PhongGLTest.cpp
  64. 9
      src/Magnum/Shaders/Test/VectorGLTest.cpp
  65. 9
      src/Magnum/Shaders/Test/VertexColorGLTest.cpp
  66. 9
      src/Magnum/Shapes/Test/AxisAlignedBoxTest.cpp
  67. 7
      src/Magnum/Shapes/Test/BoxTest.cpp
  68. 15
      src/Magnum/Shapes/Test/CapsuleTest.cpp
  69. 9
      src/Magnum/Shapes/Test/CollisionTest.cpp
  70. 27
      src/Magnum/Shapes/Test/CompositionTest.cpp
  71. 15
      src/Magnum/Shapes/Test/CylinderTest.cpp
  72. 7
      src/Magnum/Shapes/Test/LineTest.cpp
  73. 11
      src/Magnum/Shapes/Test/PlaneTest.cpp
  74. 7
      src/Magnum/Shapes/Test/PointTest.cpp
  75. 7
      src/Magnum/Shapes/Test/ShapeImplementationTest.cpp
  76. 17
      src/Magnum/Shapes/Test/ShapeTest.cpp
  77. 21
      src/Magnum/Shapes/Test/SphereTest.cpp
  78. 13
      src/Magnum/Test/AbstractImageTest.cpp
  79. 7
      src/Magnum/Test/AbstractObjectGLTest.cpp
  80. 13
      src/Magnum/Test/AbstractQueryGLTest.cpp
  81. 31
      src/Magnum/Test/AbstractShaderProgramGLTest.cpp
  82. 43
      src/Magnum/Test/AbstractShaderProgramTest.cpp
  83. 13
      src/Magnum/Test/AbstractTextureGLTest.cpp
  84. 11
      src/Magnum/Test/ArrayTest.cpp
  85. 51
      src/Magnum/Test/BufferGLTest.cpp
  86. 13
      src/Magnum/Test/BufferImageGLTest.cpp
  87. 15
      src/Magnum/Test/BufferTextureGLTest.cpp
  88. 57
      src/Magnum/Test/ColorTest.cpp
  89. 15
      src/Magnum/Test/ContextGLTest.cpp
  90. 7
      src/Magnum/Test/ContextTest.cpp
  91. 35
      src/Magnum/Test/CubeMapTextureArrayGLTest.cpp
  92. 75
      src/Magnum/Test/CubeMapTextureGLTest.cpp
  93. 15
      src/Magnum/Test/DebugGLTest.cpp
  94. 11
      src/Magnum/Test/DebugMessageTest.cpp
  95. 7
      src/Magnum/Test/DefaultFramebufferTest.cpp
  96. 79
      src/Magnum/Test/FramebufferGLTest.cpp
  97. 7
      src/Magnum/Test/FramebufferTest.cpp
  98. 9
      src/Magnum/Test/ImageReferenceTest.cpp
  99. 17
      src/Magnum/Test/ImageTest.cpp
  100. 163
      src/Magnum/Test/MeshGLTest.cpp
  101. Some files were not shown because too many files have changed in this diff Show More

7
src/Magnum/Audio/Test/AbstractImporterTest.cpp

@ -33,11 +33,10 @@
namespace Magnum { namespace Audio { namespace Test {
class AbstractImporterTest: public TestSuite::Tester {
public:
explicit AbstractImporterTest();
struct AbstractImporterTest: TestSuite::Tester {
explicit AbstractImporterTest();
void openFile();
void openFile();
};
AbstractImporterTest::AbstractImporterTest() {

7
src/Magnum/Audio/Test/BufferTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Audio { namespace Test {
class BufferTest: public TestSuite::Tester {
public:
explicit BufferTest();
struct BufferTest: TestSuite::Tester {
explicit BufferTest();
void debugFormat();
void debugFormat();
};
BufferTest::BufferTest() {

7
src/Magnum/Audio/Test/RendererTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Audio { namespace Test {
class RendererTest: public TestSuite::Tester {
public:
explicit RendererTest();
struct RendererTest: TestSuite::Tester {
explicit RendererTest();
void debugError();
void debugError();
};
RendererTest::RendererTest() {

7
src/Magnum/Audio/Test/SourceTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Audio { namespace Test {
class SourceTest: public TestSuite::Tester {
public:
explicit SourceTest();
struct SourceTest: TestSuite::Tester {
explicit SourceTest();
void debugState();
void debugState();
};
SourceTest::SourceTest() {

17
src/Magnum/DebugTools/Test/CapsuleRendererTest.cpp

@ -29,17 +29,16 @@
namespace Magnum { namespace DebugTools { namespace Test {
class CapsuleRendererTest: public TestSuite::Tester {
public:
explicit CapsuleRendererTest();
struct CapsuleRendererTest: TestSuite::Tester {
explicit CapsuleRendererTest();
void zeroLength2D();
void common2D();
void zeroLength2D();
void common2D();
void zeroLength3D();
void parallel3D();
void antiParallel3D();
void common3D();
void zeroLength3D();
void parallel3D();
void antiParallel3D();
void common3D();
};
CapsuleRendererTest::CapsuleRendererTest() {

17
src/Magnum/DebugTools/Test/CylinderRendererTest.cpp

@ -29,17 +29,16 @@
namespace Magnum { namespace DebugTools { namespace Test {
class CylinderRendererTest: public TestSuite::Tester {
public:
explicit CylinderRendererTest();
struct CylinderRendererTest: TestSuite::Tester {
explicit CylinderRendererTest();
void zeroLength2D();
void common2D();
void zeroLength2D();
void common2D();
void zeroLength3D();
void parallel3D();
void antiParallel3D();
void common3D();
void zeroLength3D();
void parallel3D();
void antiParallel3D();
void common3D();
};
CylinderRendererTest::CylinderRendererTest() {

17
src/Magnum/DebugTools/Test/ForceRendererTest.cpp

@ -29,17 +29,16 @@
namespace Magnum { namespace DebugTools { namespace Implementation { namespace Test {
class ForceRendererTest: public TestSuite::Tester {
public:
explicit ForceRendererTest();
struct ForceRendererTest: TestSuite::Tester {
explicit ForceRendererTest();
void zero2D();
void common2D();
void zero2D();
void common2D();
void zero3D();
void parallel3D();
void antiParallel3D();
void arbitrary3D();
void zero3D();
void parallel3D();
void antiParallel3D();
void arbitrary3D();
};
ForceRendererTest::ForceRendererTest() {

9
src/Magnum/DebugTools/Test/LineSegmentRendererTest.cpp

@ -33,12 +33,11 @@
namespace Magnum { namespace DebugTools { namespace Test {
class LineSegmentRendererTest: public TestSuite::Tester {
public:
explicit LineSegmentRendererTest();
struct LineSegmentRendererTest: TestSuite::Tester {
explicit LineSegmentRendererTest();
void line2D();
void line3D();
void line2D();
void line3D();
};
LineSegmentRendererTest::LineSegmentRendererTest() {

9
src/Magnum/Math/Algorithms/Test/GaussJordanTest.cpp

@ -29,12 +29,11 @@
namespace Magnum { namespace Math { namespace Algorithms { namespace Test {
class GaussJordanTest: public Corrade::TestSuite::Tester {
public:
explicit GaussJordanTest();
struct GaussJordanTest: Corrade::TestSuite::Tester {
explicit GaussJordanTest();
void singular();
void invert();
void singular();
void invert();
};
typedef RectangularMatrix<4, 4, Float> Matrix4x4;

9
src/Magnum/Math/Algorithms/Test/GramSchmidtTest.cpp

@ -29,12 +29,11 @@
namespace Magnum { namespace Math { namespace Algorithms { namespace Test {
class GramSchmidtTest: public Corrade::TestSuite::Tester {
public:
GramSchmidtTest();
struct GramSchmidtTest: Corrade::TestSuite::Tester {
explicit GramSchmidtTest();
void orthogonalize();
void orthonormalize();
void orthogonalize();
void orthonormalize();
};
typedef RectangularMatrix<3, 3, Float> Matrix3x3;

9
src/Magnum/Math/Algorithms/Test/SvdTest.cpp

@ -29,12 +29,11 @@
namespace Magnum { namespace Math { namespace Algorithms { namespace Test {
class SvdTest: public Corrade::TestSuite::Tester {
public:
explicit SvdTest();
struct SvdTest: Corrade::TestSuite::Tester {
explicit SvdTest();
void testDouble();
void testFloat();
void testDouble();
void testFloat();
};
#ifndef MAGNUM_TARGET_GLES

15
src/Magnum/Math/Geometry/Test/DistanceTest.cpp

@ -30,14 +30,13 @@
namespace Magnum { namespace Math { namespace Geometry { namespace Test {
class DistanceTest: public Corrade::TestSuite::Tester {
public:
DistanceTest();
void linePoint2D();
void linePoint3D();
void lineSegmentPoint2D();
void lineSegmentPoint3D();
struct DistanceTest: Corrade::TestSuite::Tester {
explicit DistanceTest();
void linePoint2D();
void linePoint3D();
void lineSegmentPoint2D();
void lineSegmentPoint3D();
};
typedef Math::Vector2<Float> Vector2;

9
src/Magnum/Math/Geometry/Test/IntersectionTest.cpp

@ -29,12 +29,11 @@
namespace Magnum { namespace Math { namespace Geometry { namespace Test {
class IntersectionTest: public Corrade::TestSuite::Tester {
public:
IntersectionTest();
struct IntersectionTest: Corrade::TestSuite::Tester {
explicit IntersectionTest();
void planeLine();
void lineLine();
void planeLine();
void lineLine();
};
typedef Math::Vector2<Float> Vector2;

15
src/Magnum/Math/Test/AngleTest.cpp

@ -30,16 +30,15 @@
namespace Magnum { namespace Math { namespace Test {
class AngleTest: public Corrade::TestSuite::Tester {
public:
explicit AngleTest();
struct AngleTest: Corrade::TestSuite::Tester {
explicit AngleTest();
void construct();
void literals();
void conversion();
void construct();
void literals();
void conversion();
void debugDeg();
void debugRad();
void debugDeg();
void debugRad();
};
typedef Math::Deg<Float> Deg;

41
src/Magnum/Math/Test/BoolVectorTest.cpp

@ -30,27 +30,26 @@
namespace Magnum { namespace Math { namespace Test {
class BoolVectorTest: public Corrade::TestSuite::Tester {
public:
explicit BoolVectorTest();
void construct();
void constructDefault();
void constructOneValue();
void constructOneElement();
void constructCopy();
void data();
void compare();
void compareUndefined();
void all();
void none();
void any();
void bitInverse();
void bitAndOrXor();
void debug();
struct BoolVectorTest: Corrade::TestSuite::Tester {
explicit BoolVectorTest();
void construct();
void constructDefault();
void constructOneValue();
void constructOneElement();
void constructCopy();
void data();
void compare();
void compareUndefined();
void all();
void none();
void any();
void bitInverse();
void bitAndOrXor();
void debug();
};
static_assert(BoolVector<15>::DataSize == 2, "Improper DataSize");

63
src/Magnum/Math/Test/ComplexTest.cpp

@ -31,38 +31,37 @@
namespace Magnum { namespace Math { namespace Test {
class ComplexTest: public Corrade::TestSuite::Tester {
public:
explicit ComplexTest();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void compare();
void isNormalized();
void addSubtract();
void negated();
void multiplyDivideScalar();
void multiply();
void dot();
void dotSelf();
void length();
void normalized();
void conjugated();
void inverted();
void invertedNormalized();
void angle();
void rotation();
void matrix();
void transformVector();
void debug();
struct ComplexTest: Corrade::TestSuite::Tester {
explicit ComplexTest();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void compare();
void isNormalized();
void addSubtract();
void negated();
void multiplyDivideScalar();
void multiply();
void dot();
void dotSelf();
void length();
void normalized();
void conjugated();
void inverted();
void invertedNormalized();
void angle();
void rotation();
void matrix();
void transformVector();
void debug();
};
ComplexTest::ComplexTest() {

9
src/Magnum/Math/Test/ConstantsTest.cpp

@ -30,12 +30,11 @@
namespace Magnum { namespace Math { namespace Test {
class ConstantsTest: public Corrade::TestSuite::Tester {
public:
ConstantsTest();
struct ConstantsTest: Corrade::TestSuite::Tester {
explicit ConstantsTest();
void constants();
void specials();
void constants();
void specials();
private:
template<class> void _constants();

45
src/Magnum/Math/Test/DualComplexTest.cpp

@ -31,36 +31,35 @@
namespace Magnum { namespace Math { namespace Test {
class DualComplexTest: public Corrade::TestSuite::Tester {
public:
explicit DualComplexTest();
struct DualComplexTest: Corrade::TestSuite::Tester {
explicit DualComplexTest();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void isNormalized();
void isNormalized();
void multiply();
void multiply();
void lengthSquared();
void length();
void normalized();
void lengthSquared();
void length();
void normalized();
void complexConjugated();
void dualConjugated();
void conjugated();
void inverted();
void invertedNormalized();
void complexConjugated();
void dualConjugated();
void conjugated();
void inverted();
void invertedNormalized();
void rotation();
void translation();
void combinedTransformParts();
void matrix();
void transformPoint();
void rotation();
void translation();
void combinedTransformParts();
void matrix();
void transformPoint();
void debug();
void debug();
};
typedef Math::Deg<Float> Deg;

57
src/Magnum/Math/Test/DualQuaternionTest.cpp

@ -30,35 +30,34 @@
namespace Magnum { namespace Math { namespace Test {
class DualQuaternionTest: public Corrade::TestSuite::Tester {
public:
explicit DualQuaternionTest();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void isNormalized();
void lengthSquared();
void length();
void normalized();
void quaternionConjugated();
void dualConjugated();
void conjugated();
void inverted();
void invertedNormalized();
void rotation();
void translation();
void combinedTransformParts();
void matrix();
void transformPoint();
void transformPointNormalized();
void debug();
struct DualQuaternionTest: Corrade::TestSuite::Tester {
explicit DualQuaternionTest();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void isNormalized();
void lengthSquared();
void length();
void normalized();
void quaternionConjugated();
void dualConjugated();
void conjugated();
void inverted();
void invertedNormalized();
void rotation();
void translation();
void combinedTransformParts();
void matrix();
void transformPoint();
void transformPointNormalized();
void debug();
};
typedef Math::Deg<Float> Deg;

25
src/Magnum/Math/Test/DualTest.cpp

@ -30,24 +30,23 @@
namespace Magnum { namespace Math { namespace Test {
class DualTest: public Corrade::TestSuite::Tester {
public:
explicit DualTest();
struct DualTest: Corrade::TestSuite::Tester {
explicit DualTest();
void construct();
void constructDefault();
void constructCopy();
void construct();
void constructDefault();
void constructCopy();
void compare();
void compare();
void addSubtract();
void negated();
void multiplyDivide();
void addSubtract();
void negated();
void multiplyDivide();
void conjugated();
void sqrt();
void conjugated();
void sqrt();
void debug();
void debug();
};
typedef Math::Dual<Float> Dual;

75
src/Magnum/Math/Test/FunctionsTest.cpp

@ -30,44 +30,43 @@
namespace Magnum { namespace Math { namespace Test {
class FunctionsTest: public Corrade::TestSuite::Tester {
public:
FunctionsTest();
void min();
void minList();
void max();
void maxList();
void minmax();
void clamp();
void nanPropagation();
void sign();
void abs();
void floor();
void round();
void ceil();
void sqrt();
void sqrtInverted();
void lerp();
void lerpInverted();
void fma();
void normalizeUnsigned();
void normalizeSigned();
void denormalizeUnsigned();
void denormalizeSigned();
void renormalizeUnsinged();
void renormalizeSinged();
void normalizeTypeDeduction();
void pow();
void log();
void log2();
void trigonometric();
void trigonometricWithBase();
struct FunctionsTest: Corrade::TestSuite::Tester {
explicit FunctionsTest();
void min();
void minList();
void max();
void maxList();
void minmax();
void clamp();
void nanPropagation();
void sign();
void abs();
void floor();
void round();
void ceil();
void sqrt();
void sqrtInverted();
void lerp();
void lerpInverted();
void fma();
void normalizeUnsigned();
void normalizeSigned();
void denormalizeUnsigned();
void denormalizeSigned();
void renormalizeUnsinged();
void renormalizeSinged();
void normalizeTypeDeduction();
void pow();
void log();
void log2();
void trigonometric();
void trigonometricWithBase();
};
typedef Math::Constants<Float> Constants;

61
src/Magnum/Math/Test/Matrix3Test.cpp

@ -56,37 +56,36 @@ template<> struct RectangularMatrixConverter<3, 3, float, Mat3> {
namespace Test {
class Matrix3Test: public Corrade::TestSuite::Tester {
public:
Matrix3Test();
void construct();
void constructIdentity();
void constructZero();
void constructConversion();
void constructCopy();
void convert();
void isRigidTransformation();
void translation();
void scaling();
void rotation();
void reflection();
void reflectionIsScaling();
void projection();
void fromParts();
void rotationScalingPart();
void rotationNormalizedPart();
void rotationPart();
void uniformScalingPart();
void vectorParts();
void invertedRigid();
void transform();
void debug();
void configuration();
struct Matrix3Test: Corrade::TestSuite::Tester {
explicit Matrix3Test();
void construct();
void constructIdentity();
void constructZero();
void constructConversion();
void constructCopy();
void convert();
void isRigidTransformation();
void translation();
void scaling();
void rotation();
void reflection();
void reflectionIsScaling();
void projection();
void fromParts();
void rotationScalingPart();
void rotationNormalizedPart();
void rotationPart();
void uniformScalingPart();
void vectorParts();
void invertedRigid();
void transform();
void debug();
void configuration();
};
typedef Math::Deg<Float> Deg;

71
src/Magnum/Math/Test/Matrix4Test.cpp

@ -58,42 +58,41 @@ template<> struct RectangularMatrixConverter<4, 4, float, Mat4> {
namespace Test {
class Matrix4Test: public Corrade::TestSuite::Tester {
public:
Matrix4Test();
void construct();
void constructIdentity();
void constructZero();
void constructConversion();
void constructCopy();
void convert();
void isRigidTransformation();
void translation();
void scaling();
void rotation();
void rotationX();
void rotationY();
void rotationZ();
void reflection();
void reflectionIsScaling();
void orthographicProjection();
void perspectiveProjection();
void perspectiveProjectionFov();
void fromParts();
void rotationScalingPart();
void rotationNormalizedPart();
void rotationPart();
void uniformScalingPart();
void vectorParts();
void invertedRigid();
void transform();
void debug();
void configuration();
struct Matrix4Test: Corrade::TestSuite::Tester {
explicit Matrix4Test();
void construct();
void constructIdentity();
void constructZero();
void constructConversion();
void constructCopy();
void convert();
void isRigidTransformation();
void translation();
void scaling();
void rotation();
void rotationX();
void rotationY();
void rotationZ();
void reflection();
void reflectionIsScaling();
void orthographicProjection();
void perspectiveProjection();
void perspectiveProjectionFov();
void fromParts();
void rotationScalingPart();
void rotationNormalizedPart();
void rotationPart();
void uniformScalingPart();
void vectorParts();
void invertedRigid();
void transform();
void debug();
void configuration();
};
typedef Math::Deg<Float> Deg;

37
src/Magnum/Math/Test/MatrixTest.cpp

@ -56,31 +56,30 @@ template<> struct RectangularMatrixConverter<3, 3, float, Mat3> {
namespace Test {
class MatrixTest: public Corrade::TestSuite::Tester {
public:
MatrixTest();
struct MatrixTest: Corrade::TestSuite::Tester {
explicit MatrixTest();
void construct();
void constructIdentity();
void constructZero();
void constructConversion();
void constructCopy();
void construct();
void constructIdentity();
void constructZero();
void constructConversion();
void constructCopy();
void convert();
void convert();
void isOrthogonal();
void isOrthogonal();
void trace();
void ij();
void determinant();
void inverted();
void invertedOrthogonal();
void trace();
void ij();
void determinant();
void inverted();
void invertedOrthogonal();
void subclassTypes();
void subclass();
void subclassTypes();
void subclass();
void debug();
void configuration();
void debug();
void configuration();
};
typedef Matrix<4, Float> Matrix4x4;

69
src/Magnum/Math/Test/QuaternionTest.cpp

@ -31,41 +31,40 @@
namespace Magnum { namespace Math { namespace Test {
class QuaternionTest: public Corrade::TestSuite::Tester {
public:
explicit QuaternionTest();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void compare();
void isNormalized();
void addSubtract();
void negated();
void multiplyDivideScalar();
void multiply();
void dot();
void dotSelf();
void length();
void normalized();
void conjugated();
void inverted();
void invertedNormalized();
void rotation();
void angle();
void matrix();
void lerp();
void slerp();
void transformVector();
void transformVectorNormalized();
void debug();
struct QuaternionTest: Corrade::TestSuite::Tester {
explicit QuaternionTest();
void construct();
void constructDefault();
void constructFromVector();
void constructCopy();
void compare();
void isNormalized();
void addSubtract();
void negated();
void multiplyDivideScalar();
void multiply();
void dot();
void dotSelf();
void length();
void normalized();
void conjugated();
void inverted();
void invertedNormalized();
void rotation();
void angle();
void matrix();
void lerp();
void slerp();
void transformVector();
void transformVectorNormalized();
void debug();
};
typedef Math::Deg<Float> Deg;

43
src/Magnum/Math/Test/RangeTest.cpp

@ -35,34 +35,33 @@
namespace Magnum { namespace Math { namespace Test {
class RangeTest: public Corrade::TestSuite::Tester {
public:
RangeTest();
struct RangeTest: Corrade::TestSuite::Tester {
explicit RangeTest();
void construct();
void constructDefault();
void constructFromSize();
void constructConversion();
void constructCopy();
void construct();
void constructDefault();
void constructFromSize();
void constructConversion();
void constructCopy();
void access();
void compare();
void size();
void center();
void access();
void compare();
void size();
void center();
void translated();
void padded();
void scaled();
void translated();
void padded();
void scaled();
void subclassTypes();
void subclass();
void subclassTypes();
void subclass();
#ifdef MAGNUM_BUILD_DEPRECATED
void deprecated();
#endif
#ifdef MAGNUM_BUILD_DEPRECATED
void deprecated();
#endif
void debug();
void configuration();
void debug();
void configuration();
};
typedef Math::Range1D<Float> Range1D;

49
src/Magnum/Math/Test/RectangularMatrixTest.cpp

@ -54,39 +54,38 @@ template<> struct RectangularMatrixConverter<2, 3, float, Mat2x3> {
namespace Test {
class RectangularMatrixTest: public Corrade::TestSuite::Tester {
public:
RectangularMatrixTest();
struct RectangularMatrixTest: Corrade::TestSuite::Tester {
explicit RectangularMatrixTest();
void construct();
void constructDefault();
void constructConversion();
void constructFromData();
void constructFromDiagonal();
void constructCopy();
void construct();
void constructDefault();
void constructConversion();
void constructFromData();
void constructFromDiagonal();
void constructCopy();
void convert();
void data();
void row();
void convert();
void data();
void row();
void compare();
void compare();
void negative();
void addSubtract();
void multiplyDivide();
void multiply();
void multiplyVector();
void negative();
void addSubtract();
void multiplyDivide();
void multiply();
void multiplyVector();
void transposed();
void diagonal();
void transposed();
void diagonal();
void vector();
void vector();
void subclassTypes();
void subclass();
void subclassTypes();
void subclass();
void debug();
void configuration();
void debug();
void configuration();
};
typedef RectangularMatrix<4, 3, Float> Matrix4x3;

15
src/Magnum/Math/Test/SwizzleTest.cpp

@ -29,14 +29,13 @@
namespace Magnum { namespace Math { namespace Test {
class SwizzleTest: public Corrade::TestSuite::Tester {
public:
SwizzleTest();
void components();
void constants();
void rgba();
void sizes();
struct SwizzleTest: Corrade::TestSuite::Tester {
explicit SwizzleTest();
void components();
void constants();
void rgba();
void sizes();
};
typedef Vector<4, Int> Vector4i;

19
src/Magnum/Math/Test/TypeTraitsTest.cpp

@ -30,16 +30,15 @@
namespace Magnum { namespace Math { namespace Test {
class TypeTraitsTest: public Corrade::TestSuite::Tester {
public:
TypeTraitsTest();
void equalsIntegral();
void equalsFloatingPoint0();
void equalsFloatingPoint1();
void equalsFloatingPointLarge();
void equalsFloatingPointInfinity();
void equalsFloatingPointNaN();
struct TypeTraitsTest: Corrade::TestSuite::Tester {
explicit TypeTraitsTest();
void equalsIntegral();
void equalsFloatingPoint0();
void equalsFloatingPoint1();
void equalsFloatingPointLarge();
void equalsFloatingPointInfinity();
void equalsFloatingPointNaN();
private:
template<class> void _equalsIntegral();

23
src/Magnum/Math/Test/UnitTest.cpp

@ -29,18 +29,17 @@
namespace Magnum { namespace Math { namespace Test {
class UnitTest: public Corrade::TestSuite::Tester {
public:
explicit UnitTest();
void construct();
void constructDefault();
void constructConversion();
void compare();
void negated();
void addSubtract();
void multiplyDivide();
struct UnitTest: Corrade::TestSuite::Tester {
explicit UnitTest();
void construct();
void constructDefault();
void constructConversion();
void compare();
void negated();
void addSubtract();
void multiplyDivide();
};
UnitTest::UnitTest() {

45
src/Magnum/Math/Test/Vector2Test.cpp

@ -51,29 +51,28 @@ template<> struct VectorConverter<2, float, Vec2> {
namespace Test {
class Vector2Test: public Corrade::TestSuite::Tester {
public:
Vector2Test();
void construct();
void constructDefault();
void constructOneValue();
void constructConversion();
void constructCopy();
void convert();
void access();
void cross();
void axes();
void scales();
void perpendicular();
void aspectRatio();
void minmax();
void swizzleType();
void debug();
void configuration();
struct Vector2Test: Corrade::TestSuite::Tester {
explicit Vector2Test();
void construct();
void constructDefault();
void constructOneValue();
void constructConversion();
void constructCopy();
void convert();
void access();
void cross();
void axes();
void scales();
void perpendicular();
void aspectRatio();
void minmax();
void swizzleType();
void debug();
void configuration();
};
typedef Math::Vector3<Int> Vector3i;

43
src/Magnum/Math/Test/Vector3Test.cpp

@ -51,28 +51,27 @@ template<> struct VectorConverter<3, float, Vec3> {
namespace Test {
class Vector3Test: public Corrade::TestSuite::Tester {
public:
Vector3Test();
void construct();
void constructDefault();
void constructOneValue();
void constructParts();
void constructConversion();
void constructCopy();
void convert();
void access();
void cross();
void axes();
void scales();
void twoComponent();
void swizzleType();
void debug();
void configuration();
struct Vector3Test: Corrade::TestSuite::Tester {
explicit Vector3Test();
void construct();
void constructDefault();
void constructOneValue();
void constructParts();
void constructConversion();
void constructCopy();
void convert();
void access();
void cross();
void axes();
void scales();
void twoComponent();
void swizzleType();
void debug();
void configuration();
};
typedef Math::Vector3<Float> Vector3;

39
src/Magnum/Math/Test/Vector4Test.cpp

@ -51,26 +51,25 @@ template<> struct VectorConverter<4, float, Vec4> {
namespace Test {
class Vector4Test: public Corrade::TestSuite::Tester {
public:
Vector4Test();
void construct();
void constructDefault();
void constructOneValue();
void constructParts();
void constructConversion();
void constructCopy();
void convert();
void access();
void threeComponent();
void twoComponent();
void swizzleType();
void debug();
void configuration();
struct Vector4Test: Corrade::TestSuite::Tester {
explicit Vector4Test();
void construct();
void constructDefault();
void constructOneValue();
void constructParts();
void constructConversion();
void constructCopy();
void convert();
void access();
void threeComponent();
void twoComponent();
void swizzleType();
void debug();
void configuration();
};
typedef Math::Vector4<Float> Vector4;

101
src/Magnum/Math/Test/VectorTest.cpp

@ -51,57 +51,56 @@ template<> struct VectorConverter<3, float, Vec3> {
namespace Test {
class VectorTest: public Corrade::TestSuite::Tester {
public:
VectorTest();
void construct();
void constructFromData();
void constructDefault();
void constructOneValue();
void constructOneComponent();
void constructConversion();
void constructCopy();
void isZero();
void isNormalized();
void convert();
void data();
void negative();
void addSubtract();
void multiplyDivide();
void multiplyDivideIntegral();
void multiplyDivideComponentWise();
void multiplyDivideComponentWiseIntegral();
void modulo();
void bitwise();
void compare();
void compareComponentWise();
void dot();
void dotSelf();
void length();
void lengthInverted();
void normalized();
void resized();
void sum();
void product();
void min();
void max();
void projected();
void projectedOntoNormalized();
void angle();
void subclassTypes();
void subclass();
void debug();
void configuration();
struct VectorTest: Corrade::TestSuite::Tester {
explicit VectorTest();
void construct();
void constructFromData();
void constructDefault();
void constructOneValue();
void constructOneComponent();
void constructConversion();
void constructCopy();
void isZero();
void isNormalized();
void convert();
void data();
void negative();
void addSubtract();
void multiplyDivide();
void multiplyDivideIntegral();
void multiplyDivideComponentWise();
void multiplyDivideComponentWiseIntegral();
void modulo();
void bitwise();
void compare();
void compareComponentWise();
void dot();
void dotSelf();
void length();
void lengthInverted();
void normalized();
void resized();
void sum();
void product();
void min();
void max();
void projected();
void projectedOntoNormalized();
void angle();
void subclassTypes();
void subclass();
void debug();
void configuration();
};
typedef Math::Rad<Float> Rad;

11
src/Magnum/MeshTools/Test/CombineIndexedArraysTest.cpp

@ -32,13 +32,12 @@
namespace Magnum { namespace MeshTools { namespace Test {
class CombineIndexedArraysTest: public TestSuite::Tester {
public:
CombineIndexedArraysTest();
struct CombineIndexedArraysTest: TestSuite::Tester {
explicit CombineIndexedArraysTest();
void wrongIndexCount();
void indexArrays();
void indexedArrays();
void wrongIndexCount();
void indexArrays();
void indexedArrays();
};
CombineIndexedArraysTest::CombineIndexedArraysTest() {

11
src/Magnum/MeshTools/Test/CompressIndicesTest.cpp

@ -31,13 +31,12 @@
namespace Magnum { namespace MeshTools { namespace Test {
class CompressIndicesTest: public TestSuite::Tester {
public:
CompressIndicesTest();
struct CompressIndicesTest: TestSuite::Tester {
explicit CompressIndicesTest();
void compressChar();
void compressShort();
void compressInt();
void compressChar();
void compressShort();
void compressInt();
};
CompressIndicesTest::CompressIndicesTest() {

7
src/Magnum/MeshTools/Test/DuplicateTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace MeshTools { namespace Test {
class DuplicateTest: public TestSuite::Tester {
public:
explicit DuplicateTest();
struct DuplicateTest: TestSuite::Tester {
explicit DuplicateTest();
void duplicate();
void duplicate();
};
DuplicateTest::DuplicateTest() {

11
src/Magnum/MeshTools/Test/FlipNormalsTest.cpp

@ -31,13 +31,12 @@
namespace Magnum { namespace MeshTools { namespace Test {
class FlipNormalsTest: public TestSuite::Tester {
public:
FlipNormalsTest();
struct FlipNormalsTest: TestSuite::Tester {
explicit FlipNormalsTest();
void wrongIndexCount();
void flipFaceWinding();
void flipNormals();
void wrongIndexCount();
void flipFaceWinding();
void flipNormals();
};
FlipNormalsTest::FlipNormalsTest() {

9
src/Magnum/MeshTools/Test/GenerateFlatNormalsTest.cpp

@ -31,12 +31,11 @@
namespace Magnum { namespace MeshTools { namespace Test {
class GenerateFlatNormalsTest: public TestSuite::Tester {
public:
GenerateFlatNormalsTest();
struct GenerateFlatNormalsTest: TestSuite::Tester {
explicit GenerateFlatNormalsTest();
void wrongIndexCount();
void generate();
void wrongIndexCount();
void generate();
};
GenerateFlatNormalsTest::GenerateFlatNormalsTest() {

23
src/Magnum/MeshTools/Test/InterleaveTest.cpp

@ -32,18 +32,17 @@
namespace Magnum { namespace MeshTools { namespace Test {
class InterleaveTest: public Corrade::TestSuite::Tester {
public:
InterleaveTest();
void attributeCount();
void attributeCountGaps();
void stride();
void strideGaps();
void write();
void writeGaps();
void interleaveInto();
struct InterleaveTest: Corrade::TestSuite::Tester {
explicit InterleaveTest();
void attributeCount();
void attributeCountGaps();
void stride();
void strideGaps();
void write();
void writeGaps();
void interleaveInto();
};
InterleaveTest::InterleaveTest() {

7
src/Magnum/MeshTools/Test/RemoveDuplicatesTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace MeshTools { namespace Test {
class RemoveDuplicatesTest: public TestSuite::Tester {
public:
RemoveDuplicatesTest();
struct RemoveDuplicatesTest: TestSuite::Tester {
explicit RemoveDuplicatesTest();
void removeDuplicates();
void removeDuplicates();
};
RemoveDuplicatesTest::RemoveDuplicatesTest() {

9
src/Magnum/MeshTools/Test/SubdivideTest.cpp

@ -31,12 +31,11 @@
namespace Magnum { namespace MeshTools { namespace Test {
class SubdivideTest: public TestSuite::Tester {
public:
SubdivideTest();
struct SubdivideTest: TestSuite::Tester {
explicit SubdivideTest();
void wrongIndexCount();
void subdivide();
void wrongIndexCount();
void subdivide();
};
namespace {

13
src/Magnum/MeshTools/Test/TransformTest.cpp

@ -32,15 +32,14 @@
namespace Magnum { namespace MeshTools { namespace Test {
class TransformTest: public TestSuite::Tester {
public:
explicit TransformTest();
struct TransformTest: TestSuite::Tester {
explicit TransformTest();
void transformVectors2D();
void transformVectors3D();
void transformVectors2D();
void transformVectors3D();
void transformPoints2D();
void transformPoints3D();
void transformPoints2D();
void transformPoints3D();
};
TransformTest::TransformTest() {

13
src/Magnum/Primitives/Test/CapsuleTest.cpp

@ -33,15 +33,14 @@
namespace Magnum { namespace Primitives { namespace Test {
class CapsuleTest: public TestSuite::Tester {
public:
CapsuleTest();
struct CapsuleTest: TestSuite::Tester {
explicit CapsuleTest();
void wireframe2D();
void wireframe2D();
void solid3DWithoutTextureCoords();
void solid3DWithTextureCoords();
void wireframe3D();
void solid3DWithoutTextureCoords();
void solid3DWithTextureCoords();
void wireframe3D();
};
CapsuleTest::CapsuleTest() {

9
src/Magnum/Primitives/Test/CircleTest.cpp

@ -31,12 +31,11 @@
namespace Magnum { namespace Primitives { namespace Test {
class CircleTest: public TestSuite::Tester {
public:
explicit CircleTest();
struct CircleTest: TestSuite::Tester {
explicit CircleTest();
void solid();
void wireframe();
void solid();
void wireframe();
};
CircleTest::CircleTest() {

11
src/Magnum/Primitives/Test/CylinderTest.cpp

@ -32,13 +32,12 @@
namespace Magnum { namespace Primitives { namespace Test {
class CylinderTest: public TestSuite::Tester {
public:
CylinderTest();
struct CylinderTest: TestSuite::Tester {
explicit CylinderTest();
void solidWithoutAnything();
void solidWithTextureCoordsAndCaps();
void wireframe();
void solidWithoutAnything();
void solidWithTextureCoordsAndCaps();
void wireframe();
};
CylinderTest::CylinderTest() {

7
src/Magnum/Primitives/Test/IcosphereTest.cpp

@ -31,11 +31,10 @@
namespace Magnum { namespace Primitives { namespace Test {
class IcosphereTest: public TestSuite::Tester {
public:
explicit IcosphereTest();
struct IcosphereTest: TestSuite::Tester {
explicit IcosphereTest();
void count();
void count();
};
IcosphereTest::IcosphereTest() {

11
src/Magnum/Primitives/Test/UVSphereTest.cpp

@ -32,13 +32,12 @@
namespace Magnum { namespace Primitives { namespace Test {
class UVSphereTest: public TestSuite::Tester {
public:
UVSphereTest();
struct UVSphereTest: TestSuite::Tester {
explicit UVSphereTest();
void solidWithoutTextureCoords();
void solidWithTextureCoords();
void wireframe();
void solidWithoutTextureCoords();
void solidWithTextureCoords();
void wireframe();
};
UVSphereTest::UVSphereTest() {

19
src/Magnum/SceneGraph/Test/AnimableTest.cpp

@ -32,18 +32,17 @@
namespace Magnum { namespace SceneGraph { namespace Test {
class AnimableTest: public TestSuite::Tester {
public:
AnimableTest();
struct AnimableTest: TestSuite::Tester {
explicit AnimableTest();
void state();
void step();
void duration();
void repeat();
void stop();
void pause();
void state();
void step();
void duration();
void repeat();
void stop();
void pause();
void debug();
void debug();
};
typedef SceneGraph::Object<SceneGraph::MatrixTransformation3D> Object3D;

23
src/Magnum/SceneGraph/Test/CameraTest.cpp

@ -35,18 +35,17 @@
namespace Magnum { namespace SceneGraph { namespace Test {
class CameraTest: public TestSuite::Tester {
public:
CameraTest();
void fixAspectRatio();
void defaultProjection2D();
void defaultProjection3D();
void projectionSize2D();
void projectionSizeOrthographic();
void projectionSizePerspective();
void projectionSizeViewport();
void draw();
struct CameraTest: TestSuite::Tester {
explicit CameraTest();
void fixAspectRatio();
void defaultProjection2D();
void defaultProjection3D();
void projectionSize2D();
void projectionSizeOrthographic();
void projectionSizePerspective();
void projectionSizeViewport();
void draw();
};
typedef SceneGraph::Object<SceneGraph::MatrixTransformation2D> Object2D;

29
src/Magnum/SceneGraph/Test/DualComplexTransformationTest.cpp

@ -34,21 +34,20 @@ namespace Magnum { namespace SceneGraph { namespace Test {
typedef Object<DualComplexTransformation> Object2D;
typedef Scene<DualComplexTransformation> Scene2D;
class DualComplexTransformationTest: public TestSuite::Tester {
public:
explicit DualComplexTransformationTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void normalizeRotation();
struct DualComplexTransformationTest: TestSuite::Tester {
explicit DualComplexTransformationTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void normalizeRotation();
};
DualComplexTransformationTest::DualComplexTransformationTest() {

29
src/Magnum/SceneGraph/Test/DualQuaternionTransformationTest.cpp

@ -34,21 +34,20 @@ namespace Magnum { namespace SceneGraph { namespace Test {
typedef Object<DualQuaternionTransformation> Object3D;
typedef Scene<DualQuaternionTransformation> Scene3D;
class DualQuaternionTransformationTest: public TestSuite::Tester {
public:
explicit DualQuaternionTransformationTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void normalizeRotation();
struct DualQuaternionTransformationTest: TestSuite::Tester {
explicit DualQuaternionTransformationTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void normalizeRotation();
};
DualQuaternionTransformationTest::DualQuaternionTransformationTest() {

31
src/Magnum/SceneGraph/Test/MatrixTransformation2DTest.cpp

@ -33,22 +33,21 @@ namespace Magnum { namespace SceneGraph { namespace Test {
typedef Object<MatrixTransformation2D> Object2D;
typedef Scene<MatrixTransformation2D> Scene2D;
class MatrixTransformation2DTest: public TestSuite::Tester {
public:
explicit MatrixTransformation2DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void scale();
void reflect();
struct MatrixTransformation2DTest: TestSuite::Tester {
explicit MatrixTransformation2DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void scale();
void reflect();
};
MatrixTransformation2DTest::MatrixTransformation2DTest() {

31
src/Magnum/SceneGraph/Test/MatrixTransformation3DTest.cpp

@ -33,22 +33,21 @@ namespace Magnum { namespace SceneGraph { namespace Test {
typedef Object<MatrixTransformation3D> Object3D;
typedef Scene<MatrixTransformation3D> Scene3D;
class MatrixTransformation3DTest: public TestSuite::Tester {
public:
explicit MatrixTransformation3DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void scale();
void reflect();
struct MatrixTransformation3DTest: TestSuite::Tester {
explicit MatrixTransformation3DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void scale();
void reflect();
};
MatrixTransformation3DTest::MatrixTransformation3DTest() {

35
src/Magnum/SceneGraph/Test/ObjectTest.cpp

@ -31,24 +31,23 @@
namespace Magnum { namespace SceneGraph { namespace Test {
class ObjectTest: public TestSuite::Tester {
public:
ObjectTest();
void parenting();
void scene();
void setParentKeepTransformation();
void absoluteTransformation();
void transformations();
void transformationsRelative();
void transformationsOrphan();
void transformationsDuplicate();
void setClean();
void setCleanListHierarchy();
void setCleanListBulk();
void rangeBasedForChildren();
void rangeBasedForFeatures();
struct ObjectTest: TestSuite::Tester {
explicit ObjectTest();
void parenting();
void scene();
void setParentKeepTransformation();
void absoluteTransformation();
void transformations();
void transformationsRelative();
void transformationsOrphan();
void transformationsDuplicate();
void setClean();
void setCleanListHierarchy();
void setCleanListBulk();
void rangeBasedForChildren();
void rangeBasedForFeatures();
};
typedef SceneGraph::Object<SceneGraph::MatrixTransformation3D> Object3D;

31
src/Magnum/SceneGraph/Test/RigidMatrixTransformation2DTest.cpp

@ -34,22 +34,21 @@ namespace Magnum { namespace SceneGraph { namespace Test {
typedef Object<RigidMatrixTransformation2D> Object2D;
typedef Scene<RigidMatrixTransformation2D> Scene2D;
class RigidMatrixTransformation2DTest: public TestSuite::Tester {
public:
explicit RigidMatrixTransformation2DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void reflect();
void normalizeRotation();
struct RigidMatrixTransformation2DTest: TestSuite::Tester {
explicit RigidMatrixTransformation2DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void reflect();
void normalizeRotation();
};
RigidMatrixTransformation2DTest::RigidMatrixTransformation2DTest() {

31
src/Magnum/SceneGraph/Test/RigidMatrixTransformation3DTest.cpp

@ -34,22 +34,21 @@ namespace Magnum { namespace SceneGraph { namespace Test {
typedef Object<RigidMatrixTransformation3D> Object3D;
typedef Scene<RigidMatrixTransformation3D> Scene3D;
class RigidMatrixTransformation3DTest: public TestSuite::Tester {
public:
explicit RigidMatrixTransformation3DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void reflect();
void normalizeRotation();
struct RigidMatrixTransformation3DTest: TestSuite::Tester {
explicit RigidMatrixTransformation3DTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void rotate();
void reflect();
void normalizeRotation();
};
RigidMatrixTransformation3DTest::RigidMatrixTransformation3DTest() {

9
src/Magnum/SceneGraph/Test/SceneTest.cpp

@ -30,12 +30,11 @@
namespace Magnum { namespace SceneGraph { namespace Test {
class SceneTest: public TestSuite::Tester {
public:
SceneTest();
struct SceneTest: TestSuite::Tester {
explicit SceneTest();
void transformation();
void parent();
void transformation();
void parent();
};
typedef SceneGraph::Scene<SceneGraph::MatrixTransformation3D> Scene3D;

23
src/Magnum/SceneGraph/Test/TranslationTransformationTest.cpp

@ -35,21 +35,20 @@ namespace Magnum { namespace SceneGraph { namespace Test {
typedef Object<TranslationTransformation2D> Object2D;
typedef Scene<TranslationTransformation2D> Scene2D;
class TranslationTransformationTest: public TestSuite::Tester {
public:
explicit TranslationTransformationTest();
struct TranslationTransformationTest: TestSuite::Tester {
explicit TranslationTransformationTest();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void fromMatrix();
void toMatrix();
void compose();
void inverted();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void setTransformation();
void resetTransformation();
void transform();
void translate();
void integral();
void integral();
};
TranslationTransformationTest::TranslationTransformationTest() {

9
src/Magnum/Shaders/Test/DistanceFieldVectorGLTest.cpp

@ -32,12 +32,11 @@
namespace Magnum { namespace Shaders { namespace Test {
class DistanceFieldVectorGLTest: public Magnum::Test::AbstractOpenGLTester {
public:
explicit DistanceFieldVectorGLTest();
struct DistanceFieldVectorGLTest: Magnum::Test::AbstractOpenGLTester {
explicit DistanceFieldVectorGLTest();
void compile2D();
void compile3D();
void compile2D();
void compile3D();
};
DistanceFieldVectorGLTest::DistanceFieldVectorGLTest() {

15
src/Magnum/Shaders/Test/FlatGLTest.cpp

@ -32,14 +32,13 @@
namespace Magnum { namespace Shaders { namespace Test {
class FlatGLTest: public Magnum::Test::AbstractOpenGLTester {
public:
explicit FlatGLTest();
void compile2D();
void compile3D();
void compile2DTextured();
void compile3DTextured();
struct FlatGLTest: Magnum::Test::AbstractOpenGLTester {
explicit FlatGLTest();
void compile2D();
void compile3D();
void compile2DTextured();
void compile3DTextured();
};
FlatGLTest::FlatGLTest() {

11
src/Magnum/Shaders/Test/MeshVisualizerGLTest.cpp

@ -34,13 +34,12 @@
namespace Magnum { namespace Shaders { namespace Test {
class MeshVisualizerGLTest: public Magnum::Test::AbstractOpenGLTester {
public:
explicit MeshVisualizerGLTest();
struct MeshVisualizerGLTest: Magnum::Test::AbstractOpenGLTester {
explicit MeshVisualizerGLTest();
void compile();
void compileWireframeGeometryShader();
void compileWireframeNoGeometryShader();
void compile();
void compileWireframeGeometryShader();
void compileWireframeNoGeometryShader();
};
MeshVisualizerGLTest::MeshVisualizerGLTest() {

23
src/Magnum/Shaders/Test/PhongGLTest.cpp

@ -32,18 +32,17 @@
namespace Magnum { namespace Shaders { namespace Test {
class PhongGLTest: public Magnum::Test::AbstractOpenGLTester {
public:
explicit PhongGLTest();
void compile();
void compileAmbientTexture();
void compileDiffuseTexture();
void compileSpecularTexture();
void compileAmbientDiffuseTexture();
void compileAmbientSpecularTexture();
void compileDiffuseSpecularTexture();
void compileAmbientDiffuseSpecularTexture();
struct PhongGLTest: Magnum::Test::AbstractOpenGLTester {
explicit PhongGLTest();
void compile();
void compileAmbientTexture();
void compileDiffuseTexture();
void compileSpecularTexture();
void compileAmbientDiffuseTexture();
void compileAmbientSpecularTexture();
void compileDiffuseSpecularTexture();
void compileAmbientDiffuseSpecularTexture();
};
PhongGLTest::PhongGLTest() {

9
src/Magnum/Shaders/Test/VectorGLTest.cpp

@ -32,12 +32,11 @@
namespace Magnum { namespace Shaders { namespace Test {
class VectorGLTest: public Magnum::Test::AbstractOpenGLTester {
public:
explicit VectorGLTest();
struct VectorGLTest: Magnum::Test::AbstractOpenGLTester {
explicit VectorGLTest();
void compile2D();
void compile3D();
void compile2D();
void compile3D();
};
VectorGLTest::VectorGLTest() {

9
src/Magnum/Shaders/Test/VertexColorGLTest.cpp

@ -32,12 +32,11 @@
namespace Magnum { namespace Shaders { namespace Test {
class VertexColorGLTest: public Magnum::Test::AbstractOpenGLTester {
public:
explicit VertexColorGLTest();
struct VertexColorGLTest: Magnum::Test::AbstractOpenGLTester {
explicit VertexColorGLTest();
void compile2D();
void compile3D();
void compile2D();
void compile3D();
};
VertexColorGLTest::VertexColorGLTest() {

9
src/Magnum/Shapes/Test/AxisAlignedBoxTest.cpp

@ -32,12 +32,11 @@
namespace Magnum { namespace Shapes { namespace Test {
class AxisAlignedBoxTest: public TestSuite::Tester {
public:
AxisAlignedBoxTest();
struct AxisAlignedBoxTest: TestSuite::Tester {
explicit AxisAlignedBoxTest();
void transformed();
void collisionPoint();
void transformed();
void collisionPoint();
};
AxisAlignedBoxTest::AxisAlignedBoxTest() {

7
src/Magnum/Shapes/Test/BoxTest.cpp

@ -31,11 +31,10 @@
namespace Magnum { namespace Shapes { namespace Test {
class BoxTest: public TestSuite::Tester {
public:
BoxTest();
struct BoxTest: TestSuite::Tester {
explicit BoxTest();
void transformed();
void transformed();
};
BoxTest::BoxTest() {

15
src/Magnum/Shapes/Test/CapsuleTest.cpp

@ -34,14 +34,13 @@
namespace Magnum { namespace Shapes { namespace Test {
class CapsuleTest: public TestSuite::Tester {
public:
CapsuleTest();
void transformed();
void transformedAverageScaling();
void collisionPoint();
void collisionSphere();
struct CapsuleTest: TestSuite::Tester {
explicit CapsuleTest();
void transformed();
void transformedAverageScaling();
void collisionPoint();
void collisionSphere();
};
CapsuleTest::CapsuleTest() {

9
src/Magnum/Shapes/Test/CollisionTest.cpp

@ -30,12 +30,11 @@
namespace Magnum { namespace Shapes { namespace Test {
class CollisionTest: public TestSuite::Tester {
public:
explicit CollisionTest();
struct CollisionTest: TestSuite::Tester {
explicit CollisionTest();
void boolConversion();
void flipped();
void boolConversion();
void flipped();
};
CollisionTest::CollisionTest() {

27
src/Magnum/Shapes/Test/CompositionTest.cpp

@ -34,20 +34,19 @@
namespace Magnum { namespace Shapes { namespace Test {
class CompositionTest: public TestSuite::Tester {
public:
CompositionTest();
void negated();
void anded();
void ored();
void multipleUnary();
void hierarchy();
void empty();
void copy();
void move();
void transformed();
struct CompositionTest: TestSuite::Tester {
explicit CompositionTest();
void negated();
void anded();
void ored();
void multipleUnary();
void hierarchy();
void empty();
void copy();
void move();
void transformed();
};
CompositionTest::CompositionTest() {

15
src/Magnum/Shapes/Test/CylinderTest.cpp

@ -34,14 +34,13 @@
namespace Magnum { namespace Shapes { namespace Test {
class CylinderTest: public TestSuite::Tester {
public:
CylinderTest();
void transformed();
void transformedAverageScaling();
void collisionPoint();
void collisionSphere();
struct CylinderTest: TestSuite::Tester {
explicit CylinderTest();
void transformed();
void transformedAverageScaling();
void collisionPoint();
void collisionSphere();
};
CylinderTest::CylinderTest() {

7
src/Magnum/Shapes/Test/LineTest.cpp

@ -31,11 +31,10 @@
namespace Magnum { namespace Shapes { namespace Test {
class LineTest: public TestSuite::Tester {
public:
LineTest();
struct LineTest: TestSuite::Tester {
explicit LineTest();
void transformed();
void transformed();
};
LineTest::LineTest() {

11
src/Magnum/Shapes/Test/PlaneTest.cpp

@ -32,13 +32,12 @@
namespace Magnum { namespace Shapes { namespace Test {
class PlaneTest: public TestSuite::Tester {
public:
PlaneTest();
struct PlaneTest: TestSuite::Tester {
explicit PlaneTest();
void transformed();
void collisionLine();
void collisionLineSegment();
void transformed();
void collisionLine();
void collisionLineSegment();
};
PlaneTest::PlaneTest() {

7
src/Magnum/Shapes/Test/PointTest.cpp

@ -31,11 +31,10 @@
namespace Magnum { namespace Shapes { namespace Test {
class PointTest: public TestSuite::Tester {
public:
PointTest();
struct PointTest: TestSuite::Tester {
explicit PointTest();
void transformed();
void transformed();
};
PointTest::PointTest() {

7
src/Magnum/Shapes/Test/ShapeImplementationTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Shapes { namespace Test {
class ShapeImplementationTest: public TestSuite::Tester {
public:
ShapeImplementationTest();
struct ShapeImplementationTest: TestSuite::Tester {
explicit ShapeImplementationTest();
void debug();
void debug();
};
ShapeImplementationTest::ShapeImplementationTest() {

17
src/Magnum/Shapes/Test/ShapeTest.cpp

@ -36,15 +36,14 @@
namespace Magnum { namespace Shapes { namespace Test {
class ShapeTest: public TestSuite::Tester {
public:
ShapeTest();
void clean();
void collides();
void collision();
void firstCollision();
void shapeGroup();
struct ShapeTest: TestSuite::Tester {
explicit ShapeTest();
void clean();
void collides();
void collision();
void firstCollision();
void shapeGroup();
};
typedef SceneGraph::Scene<SceneGraph::MatrixTransformation2D> Scene2D;

21
src/Magnum/Shapes/Test/SphereTest.cpp

@ -34,17 +34,16 @@
namespace Magnum { namespace Shapes { namespace Test {
class SphereTest: public TestSuite::Tester {
public:
SphereTest();
void transformed();
void collisionPoint();
void collisionPointInverted();
void collisionLine();
void collisionLineSegment();
void collisionSphere();
void collisionSphereInverted();
struct SphereTest: TestSuite::Tester {
explicit SphereTest();
void transformed();
void collisionPoint();
void collisionPointInverted();
void collisionLine();
void collisionLineSegment();
void collisionSphere();
void collisionSphereInverted();
};
SphereTest::SphereTest() {

13
src/Magnum/Test/AbstractImageTest.cpp

@ -32,15 +32,14 @@
namespace Magnum { namespace Test {
class AbstractImageTest: public TestSuite::Tester {
public:
explicit AbstractImageTest();
struct AbstractImageTest: TestSuite::Tester {
explicit AbstractImageTest();
void pixelSize();
void dataSize();
void pixelSize();
void dataSize();
void debugFormat();
void debugType();
void debugFormat();
void debugType();
};
AbstractImageTest::AbstractImageTest() {

7
src/Magnum/Test/AbstractObjectGLTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Test {
class AbstractObjectGLTest: public AbstractOpenGLTester {
public:
explicit AbstractObjectGLTest();
struct AbstractObjectGLTest: AbstractOpenGLTester {
explicit AbstractObjectGLTest();
void labelNoOp();
void labelNoOp();
};
AbstractObjectGLTest::AbstractObjectGLTest() {

13
src/Magnum/Test/AbstractQueryGLTest.cpp

@ -28,15 +28,14 @@
namespace Magnum { namespace Test {
class AbstractQueryGLTest: public AbstractOpenGLTester {
public:
explicit AbstractQueryGLTest();
struct AbstractQueryGLTest: AbstractOpenGLTester {
explicit AbstractQueryGLTest();
void construct();
void constructCopy();
void constructMove();
void construct();
void constructCopy();
void constructMove();
void label();
void label();
};
AbstractQueryGLTest::AbstractQueryGLTest() {

31
src/Magnum/Test/AbstractShaderProgramGLTest.cpp

@ -35,26 +35,25 @@
namespace Magnum { namespace Test {
class AbstractShaderProgramGLTest: public AbstractOpenGLTester {
public:
explicit AbstractShaderProgramGLTest();
struct AbstractShaderProgramGLTest: AbstractOpenGLTester {
explicit AbstractShaderProgramGLTest();
void construct();
void constructCopy();
void constructMove();
void construct();
void constructCopy();
void constructMove();
void label();
void label();
void create();
void createMultipleOutputs();
#ifndef MAGNUM_TARGET_GLES
void createMultipleOutputsIndexed();
#endif
void create();
void createMultipleOutputs();
#ifndef MAGNUM_TARGET_GLES
void createMultipleOutputsIndexed();
#endif
void uniform();
void uniformVector();
void uniformMatrix();
void uniformArray();
void uniform();
void uniformVector();
void uniformMatrix();
void uniformArray();
};
AbstractShaderProgramGLTest::AbstractShaderProgramGLTest() {

43
src/Magnum/Test/AbstractShaderProgramTest.cpp

@ -29,28 +29,27 @@
namespace Magnum { namespace Test {
class AbstractShaderProgramTest: public TestSuite::Tester {
public:
explicit AbstractShaderProgramTest();
void attributeScalar();
void attributeScalarInt();
void attributeScalarUnsignedInt();
void attributeScalarDouble();
void attributeVector();
void attributeVectorInt();
void attributeVectorUnsignedInt();
void attributeVectorDouble();
void attributeVector4();
void attributeVectorBGRA();
void attributeMatrixNxN();
#ifndef MAGNUM_TARGET_GLES2
void attributeMatrixMxN();
#endif
void attributeMatrixNxNd();
void attributeMatrixMxNd();
struct AbstractShaderProgramTest: TestSuite::Tester {
explicit AbstractShaderProgramTest();
void attributeScalar();
void attributeScalarInt();
void attributeScalarUnsignedInt();
void attributeScalarDouble();
void attributeVector();
void attributeVectorInt();
void attributeVectorUnsignedInt();
void attributeVectorDouble();
void attributeVector4();
void attributeVectorBGRA();
void attributeMatrixNxN();
#ifndef MAGNUM_TARGET_GLES2
void attributeMatrixMxN();
#endif
void attributeMatrixNxNd();
void attributeMatrixMxNd();
};
AbstractShaderProgramTest::AbstractShaderProgramTest() {

13
src/Magnum/Test/AbstractTextureGLTest.cpp

@ -30,15 +30,14 @@
namespace Magnum { namespace Test {
class AbstractTextureGLTest: public AbstractOpenGLTester {
public:
explicit AbstractTextureGLTest();
struct AbstractTextureGLTest: AbstractOpenGLTester {
explicit AbstractTextureGLTest();
void construct();
void constructCopy();
void constructMove();
void construct();
void constructCopy();
void constructMove();
void label();
void label();
};
AbstractTextureGLTest::AbstractTextureGLTest() {

11
src/Magnum/Test/ArrayTest.cpp

@ -29,13 +29,12 @@
namespace Magnum { namespace Test {
class ArrayTest: public TestSuite::Tester {
public:
ArrayTest();
struct ArrayTest: TestSuite::Tester {
explicit ArrayTest();
void construct();
void equality();
void access();
void construct();
void equality();
void access();
};
typedef Magnum::Array1D<Int> Array1D;

51
src/Magnum/Test/BufferGLTest.cpp

@ -34,32 +34,31 @@
namespace Magnum { namespace Test {
class BufferGLTest: public AbstractOpenGLTester {
public:
explicit BufferGLTest();
void construct();
void constructCopy();
void constructMove();
void label();
#ifndef MAGNUM_TARGET_GLES2
void bindBase();
void bindRange();
#endif
void data();
void map();
#ifdef MAGNUM_TARGET_GLES2
void mapSub();
#endif
void mapRange();
void mapRangeExplicitFlush();
#ifndef MAGNUM_TARGET_GLES2
void copy();
#endif
void invalidate();
struct BufferGLTest: AbstractOpenGLTester {
explicit BufferGLTest();
void construct();
void constructCopy();
void constructMove();
void label();
#ifndef MAGNUM_TARGET_GLES2
void bindBase();
void bindRange();
#endif
void data();
void map();
#ifdef MAGNUM_TARGET_GLES2
void mapSub();
#endif
void mapRange();
void mapRangeExplicitFlush();
#ifndef MAGNUM_TARGET_GLES2
void copy();
#endif
void invalidate();
};
BufferGLTest::BufferGLTest() {

13
src/Magnum/Test/BufferImageGLTest.cpp

@ -31,15 +31,14 @@
namespace Magnum { namespace Test {
class BufferImageTest: public AbstractOpenGLTester {
public:
explicit BufferImageTest();
struct BufferImageTest: AbstractOpenGLTester {
explicit BufferImageTest();
void construct();
void constructCopy();
void constructMove();
void construct();
void constructCopy();
void constructMove();
void setData();
void setData();
};
BufferImageTest::BufferImageTest() {

15
src/Magnum/Test/BufferTextureGLTest.cpp

@ -31,14 +31,13 @@
namespace Magnum { namespace Test {
class BufferTextureGLTest: public AbstractOpenGLTester {
public:
explicit BufferTextureGLTest();
void construct();
void bind();
void setBuffer();
void setBufferOffset();
struct BufferTextureGLTest: AbstractOpenGLTester {
explicit BufferTextureGLTest();
void construct();
void bind();
void setBuffer();
void setBufferOffset();
};
BufferTextureGLTest::BufferTextureGLTest() {

57
src/Magnum/Test/ColorTest.cpp

@ -31,35 +31,34 @@
namespace Magnum { namespace Test {
class ColorTest: public TestSuite::Tester {
public:
ColorTest();
void construct();
void constructDefault();
void constructOneValue();
void constructParts();
void constructConversion();
void constructNormalization();
void constructCopy();
void colors();
void fromHue();
void fromSaturation();
void fromValue();
void hue();
void saturation();
void value();
void hsv();
void hsvOverflow();
void hsvAlpha();
void swizzleType();
void debug();
void configuration();
struct ColorTest: TestSuite::Tester {
explicit ColorTest();
void construct();
void constructDefault();
void constructOneValue();
void constructParts();
void constructConversion();
void constructNormalization();
void constructCopy();
void colors();
void fromHue();
void fromSaturation();
void fromValue();
void hue();
void saturation();
void value();
void hsv();
void hsvOverflow();
void hsvAlpha();
void swizzleType();
void debug();
void configuration();
};
ColorTest::ColorTest() {

15
src/Magnum/Test/ContextGLTest.cpp

@ -29,14 +29,13 @@
namespace Magnum { namespace Test {
class ContextGLTest: public AbstractOpenGLTester {
public:
explicit ContextGLTest();
void isVersionSupported();
void supportedVersion();
void isExtensionSupported();
void isExtensionDisabled();
struct ContextGLTest: AbstractOpenGLTester {
explicit ContextGLTest();
void isVersionSupported();
void supportedVersion();
void isExtensionSupported();
void isExtensionDisabled();
};
ContextGLTest::ContextGLTest() {

7
src/Magnum/Test/ContextTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Test {
class ContextTest: public TestSuite::Tester {
public:
explicit ContextTest();
struct ContextTest: TestSuite::Tester {
explicit ContextTest();
void debugFlag();
void debugFlag();
};
ContextTest::ContextTest() {

35
src/Magnum/Test/CubeMapTextureArrayGLTest.cpp

@ -35,30 +35,29 @@
namespace Magnum { namespace Test {
class CubeMapTextureArrayGLTest: public AbstractOpenGLTester {
public:
explicit CubeMapTextureArrayGLTest();
struct CubeMapTextureArrayGLTest: AbstractOpenGLTester {
explicit CubeMapTextureArrayGLTest();
void construct();
void bind();
void construct();
void bind();
void sampling();
void samplingSRGBDecode();
void samplingBorderInteger();
void samplingSwizzle();
void samplingDepthStencilMode();
void sampling();
void samplingSRGBDecode();
void samplingBorderInteger();
void samplingSwizzle();
void samplingDepthStencilMode();
void storage();
void storage();
void image();
void imageBuffer();
void subImage();
void subImageBuffer();
void image();
void imageBuffer();
void subImage();
void subImageBuffer();
void generateMipmap();
void generateMipmap();
void invalidateImage();
void invalidateSubImage();
void invalidateImage();
void invalidateSubImage();
};
CubeMapTextureArrayGLTest::CubeMapTextureArrayGLTest() {

75
src/Magnum/Test/CubeMapTextureGLTest.cpp

@ -38,44 +38,43 @@
namespace Magnum { namespace Test {
class CubeMapTextureGLTest: public AbstractOpenGLTester {
public:
explicit CubeMapTextureGLTest();
void construct();
void bind();
void sampling();
void samplingSRGBDecode();
#ifndef MAGNUM_TARGET_GLES2
void samplingSwizzle();
#else
void samplingMaxLevel();
void samplingCompare();
#endif
#ifndef MAGNUM_TARGET_GLES
void samplingBorderInteger();
#endif
#ifndef MAGNUM_TARGET_GLES2
void samplingDepthStencilMode();
#endif
void storage();
void image();
#ifndef MAGNUM_TARGET_GLES2
void imageBuffer();
#endif
void subImage();
#ifndef MAGNUM_TARGET_GLES2
void subImageBuffer();
#endif
void generateMipmap();
void invalidateImage();
void invalidateSubImage();
struct CubeMapTextureGLTest: AbstractOpenGLTester {
explicit CubeMapTextureGLTest();
void construct();
void bind();
void sampling();
void samplingSRGBDecode();
#ifndef MAGNUM_TARGET_GLES2
void samplingSwizzle();
#else
void samplingMaxLevel();
void samplingCompare();
#endif
#ifndef MAGNUM_TARGET_GLES
void samplingBorderInteger();
#endif
#ifndef MAGNUM_TARGET_GLES2
void samplingDepthStencilMode();
#endif
void storage();
void image();
#ifndef MAGNUM_TARGET_GLES2
void imageBuffer();
#endif
void subImage();
#ifndef MAGNUM_TARGET_GLES2
void subImageBuffer();
#endif
void generateMipmap();
void invalidateImage();
void invalidateSubImage();
};
CubeMapTextureGLTest::CubeMapTextureGLTest() {

15
src/Magnum/Test/DebugGLTest.cpp

@ -36,17 +36,16 @@
namespace Magnum { namespace Test {
class DebugGLTest: public AbstractOpenGLTester {
public:
explicit DebugGLTest();
struct DebugGLTest: AbstractOpenGLTester {
explicit DebugGLTest();
void insertMessageNoOp();
void insertMessage();
void insertMessageFallback();
void insertMessageNoOp();
void insertMessage();
void insertMessageFallback();
void setMessageEnabled();
void setMessageEnabled();
void deprecated();
void deprecated();
};
DebugGLTest::DebugGLTest() {

11
src/Magnum/Test/DebugMessageTest.cpp

@ -30,13 +30,12 @@
namespace Magnum { namespace Test {
class DebugMessageTest: public TestSuite::Tester {
public:
explicit DebugMessageTest();
struct DebugMessageTest: TestSuite::Tester {
explicit DebugMessageTest();
void debugSource();
void debugType();
void debugSeverity();
void debugSource();
void debugType();
void debugSeverity();
};
DebugMessageTest::DebugMessageTest() {

7
src/Magnum/Test/DefaultFramebufferTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Test {
class DefaultFramebufferTest: public TestSuite::Tester {
public:
explicit DefaultFramebufferTest();
struct DefaultFramebufferTest: TestSuite::Tester {
explicit DefaultFramebufferTest();
void debugStatus();
void debugStatus();
};
DefaultFramebufferTest::DefaultFramebufferTest() {

79
src/Magnum/Test/FramebufferGLTest.cpp

@ -49,52 +49,51 @@
namespace Magnum { namespace Test {
class FramebufferGLTest: public AbstractOpenGLTester {
public:
explicit FramebufferGLTest();
struct FramebufferGLTest: AbstractOpenGLTester {
explicit FramebufferGLTest();
void construct();
void constructCopy();
void constructMove();
void construct();
void constructCopy();
void constructMove();
void label();
void label();
void attachRenderbuffer();
void attachRenderbufferMultisample();
void attachRenderbuffer();
void attachRenderbufferMultisample();
#ifndef MAGNUM_TARGET_GLES
void attachTexture1D();
#endif
void attachTexture2D();
void attachTexture3D();
#ifndef MAGNUM_TARGET_GLES
void attachTexture1DArray();
#endif
#ifndef MAGNUM_TARGET_GLES2
void attachTexture2DArray();
void attachTexture2DMultisample();
#endif
#ifndef MAGNUM_TARGET_GLES
void attachTexture2DMultisampleArray();
void attachRectangleTexture();
#endif
void attachCubeMapTexture();
#ifndef MAGNUM_TARGET_GLES
void attachCubeMapTextureArray();
#endif
#ifndef MAGNUM_TARGET_GLES
void attachTexture1D();
#endif
void attachTexture2D();
void attachTexture3D();
#ifndef MAGNUM_TARGET_GLES
void attachTexture1DArray();
#endif
#ifndef MAGNUM_TARGET_GLES2
void attachTexture2DArray();
void attachTexture2DMultisample();
#endif
#ifndef MAGNUM_TARGET_GLES
void attachTexture2DMultisampleArray();
void attachRectangleTexture();
#endif
void attachCubeMapTexture();
#ifndef MAGNUM_TARGET_GLES
void attachCubeMapTextureArray();
#endif
void multipleColorOutputs();
void multipleColorOutputs();
void clear();
void invalidate();
#ifndef MAGNUM_TARGET_GLES2
void invalidateSub();
#endif
void read();
#ifndef MAGNUM_TARGET_GLES2
void readBuffer();
#endif
void blit();
void clear();
void invalidate();
#ifndef MAGNUM_TARGET_GLES2
void invalidateSub();
#endif
void read();
#ifndef MAGNUM_TARGET_GLES2
void readBuffer();
#endif
void blit();
#ifdef MAGNUM_TARGET_GLES2
private:

7
src/Magnum/Test/FramebufferTest.cpp

@ -30,11 +30,10 @@
namespace Magnum { namespace Test {
class FramebufferTest: public TestSuite::Tester {
public:
explicit FramebufferTest();
struct FramebufferTest: TestSuite::Tester {
explicit FramebufferTest();
void debugStatus();
void debugStatus();
};
FramebufferTest::FramebufferTest() {

9
src/Magnum/Test/ImageReferenceTest.cpp

@ -30,12 +30,11 @@
namespace Magnum { namespace Test {
class ImageReferenceTest: public TestSuite::Tester {
public:
explicit ImageReferenceTest();
struct ImageReferenceTest: TestSuite::Tester {
explicit ImageReferenceTest();
void construct();
void setData();
void construct();
void setData();
};
ImageReferenceTest::ImageReferenceTest() {

17
src/Magnum/Test/ImageTest.cpp

@ -30,17 +30,16 @@
namespace Magnum { namespace Test {
class ImageTest: public TestSuite::Tester {
public:
explicit ImageTest();
struct ImageTest: TestSuite::Tester {
explicit ImageTest();
void construct();
void constructCopy();
void constructMove();
void construct();
void constructCopy();
void constructMove();
void setData();
void toReference();
void release();
void setData();
void toReference();
void release();
};
ImageTest::ImageTest() {

163
src/Magnum/Test/MeshGLTest.cpp

@ -42,98 +42,97 @@ namespace Magnum { namespace Test {
/* Tests also MeshView class. */
class MeshGLTest: public AbstractOpenGLTester {
public:
explicit MeshGLTest();
struct MeshGLTest: AbstractOpenGLTester {
explicit MeshGLTest();
void construct();
void constructCopy();
void constructMove();
void construct();
void constructCopy();
void constructMove();
void label();
void label();
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferUnsignedInt();
void addVertexBufferInt();
#endif
void addVertexBufferFloat();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferDouble();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferVectorNui();
void addVertexBufferVectorNi();
#endif
void addVertexBufferVectorN();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferVectorNd();
#endif
void addVertexBufferMatrixNxN();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferMatrixNxNd();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferMatrixMxN();
#endif
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferMatrixMxNd();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferUnsignedInt();
void addVertexBufferInt();
#endif
void addVertexBufferFloat();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferDouble();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferVectorNui();
void addVertexBufferVectorNi();
#endif
void addVertexBufferVectorN();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferVectorNd();
#endif
void addVertexBufferMatrixNxN();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferMatrixNxNd();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferMatrixMxN();
#endif
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferMatrixMxNd();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferUnsignedIntWithUnsignedShort();
void addVertexBufferUnsignedIntWithShort();
void addVertexBufferIntWithUnsignedShort();
void addVertexBufferIntWithShort();
#endif
/* Other Float types omitted (covered by addVertexBufferNormalized()) */
void addVertexBufferFloatWithHalfFloat();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferFloatWithDouble();
void addVertexBufferVector3WithUnsignedInt10f11f11fRev();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferVector4WithUnsignedInt2101010Rev();
void addVertexBufferVector4WithInt2101010Rev();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferUnsignedIntWithUnsignedShort();
void addVertexBufferUnsignedIntWithShort();
void addVertexBufferIntWithUnsignedShort();
void addVertexBufferIntWithShort();
#endif
/* Other Float types omitted (covered by addVertexBufferNormalized()) */
void addVertexBufferFloatWithHalfFloat();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferFloatWithDouble();
void addVertexBufferVector3WithUnsignedInt10f11f11fRev();
#endif
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferVector4WithUnsignedInt2101010Rev();
void addVertexBufferVector4WithInt2101010Rev();
#endif
void addVertexBufferLessVectorComponents();
void addVertexBufferNormalized();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferBGRA();
#endif
void addVertexBufferLessVectorComponents();
void addVertexBufferNormalized();
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferBGRA();
#endif
void addVertexBufferMultiple();
void addVertexBufferMultipleGaps();
void addVertexBufferMultiple();
void addVertexBufferMultipleGaps();
void setIndexBuffer();
void setIndexBufferRange();
void setIndexBufferUnsignedInt();
void setIndexBuffer();
void setIndexBufferRange();
void setIndexBufferUnsignedInt();
#ifndef MAGNUM_TARGET_GLES
void setBaseVertex();
#endif
void setInstanceCount();
void setInstanceCountIndexed();
#ifndef MAGNUM_TARGET_GLES
void setInstanceCountBaseInstance();
void setInstanceCountBaseInstanceIndexed();
void setInstanceCountBaseVertex();
void setInstanceCountBaseVertexBaseInstance();
#endif
#ifndef MAGNUM_TARGET_GLES
void setBaseVertex();
#endif
void setInstanceCount();
void setInstanceCountIndexed();
#ifndef MAGNUM_TARGET_GLES
void setInstanceCountBaseInstance();
void setInstanceCountBaseInstanceIndexed();
void setInstanceCountBaseVertex();
void setInstanceCountBaseVertexBaseInstance();
#endif
void addVertexBufferInstancedFloat();
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferInstancedInteger();
#endif
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferInstancedDouble();
#endif
void addVertexBufferInstancedFloat();
#ifndef MAGNUM_TARGET_GLES2
void addVertexBufferInstancedInteger();
#endif
#ifndef MAGNUM_TARGET_GLES
void addVertexBufferInstancedDouble();
#endif
void multiDraw();
void multiDrawIndexed();
#ifndef MAGNUM_TARGET_GLES
void multiDrawBaseVertex();
#endif
void multiDraw();
void multiDrawIndexed();
#ifndef MAGNUM_TARGET_GLES
void multiDrawBaseVertex();
#endif
};
MeshGLTest::MeshGLTest() {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save