diff --git a/src/AbstractFramebuffer.h b/src/AbstractFramebuffer.h index cd9541e71..ddd3f281d 100644 --- a/src/AbstractFramebuffer.h +++ b/src/AbstractFramebuffer.h @@ -51,7 +51,7 @@ enum class FramebufferClear: GLbitfield { * * @see AbstractFramebuffer::clear() */ -typedef Corrade::Containers::EnumSet FramebufferClearMask; /** @@ -76,7 +76,7 @@ enum class FramebufferBlit: GLbitfield { * @requires_gles30 %Extension @es_extension{ANGLE,framebuffer_blit} or * @es_extension{NV,framebuffer_blit} */ -typedef Corrade::Containers::EnumSet FramebufferBlitMask; /** diff --git a/src/AbstractShaderProgram.h b/src/AbstractShaderProgram.h index a042fdb93..b473aa2c8 100644 --- a/src/AbstractShaderProgram.h +++ b/src/AbstractShaderProgram.h @@ -1096,7 +1096,7 @@ template class AbstractShaderProgram::Attribute { * @see Attribute() */ #ifdef DOXYGEN_GENERATING_OUTPUT - typedef typename Corrade::Containers::EnumSet DataOptions; + typedef typename Containers::EnumSet DataOptions; #else typedef typename Implementation::Attribute::DataOptions DataOptions; #endif @@ -1239,7 +1239,7 @@ struct FloatAttribute { enum class DataOption: UnsignedByte { Normalized = 1 << 0 }; - typedef Corrade::Containers::EnumSet DataOptions; + typedef Containers::EnumSet DataOptions; static std::size_t MAGNUM_EXPORT size(GLint components, DataType dataType); }; @@ -1264,7 +1264,7 @@ struct IntAttribute { constexpr static DataType DefaultDataType = DataType::Int; enum class DataOption: UnsignedByte {}; - typedef Corrade::Containers::EnumSet DataOptions; + typedef Containers::EnumSet DataOptions; static std::size_t MAGNUM_EXPORT size(GLint components, DataType dataType); }; @@ -1279,7 +1279,7 @@ struct UnsignedIntAttribute { constexpr static DataType DefaultDataType = DataType::UnsignedInt; typedef IntAttribute::DataOption DataOption; - typedef Corrade::Containers::EnumSet DataOptions; + typedef Containers::EnumSet DataOptions; inline static std::size_t size(GLint components, DataType dataType) { return IntAttribute::size(components, dataType); @@ -1298,7 +1298,7 @@ struct DoubleAttribute { constexpr static DataType DefaultDataType = DataType::Double; enum class DataOption: UnsignedByte {}; - typedef Corrade::Containers::EnumSet DataOptions; + typedef Containers::EnumSet DataOptions; static std::size_t MAGNUM_EXPORT size(GLint components, DataType dataType); }; @@ -1350,7 +1350,7 @@ template<> struct Attribute> { enum class DataOption: UnsignedByte { Normalized = 1 << 0 }; - typedef Corrade::Containers::EnumSet DataOptions; + typedef Containers::EnumSet DataOptions; inline constexpr static std::size_t vectorCount() { return 1; } diff --git a/src/Buffer.h b/src/Buffer.h index bb7c5341e..c73a4e64f 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -428,7 +428,7 @@ class MAGNUM_EXPORT Buffer { * @requires_gl30 %Extension @extension{ARB,map_buffer_range} * @requires_gles30 %Extension @es_extension{EXT,map_buffer_range} */ - typedef Corrade::Containers::EnumSet MapFlags; + typedef Containers::EnumSet MapFlags; /** * @brief Unbind any buffer from given target diff --git a/src/Context.cpp b/src/Context.cpp index bd7c44245..b15b81956 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -359,7 +359,7 @@ Context::Context() { /* Don't crash when glGetString() returns nullptr */ const char* e = reinterpret_cast(glGetString(GL_EXTENSIONS)); if(e) { - std::vector extensions = Corrade::Utility::String::split(e, ' '); + std::vector extensions = Utility::String::split(e, ' '); for(const std::string& extension: extensions) { auto found = futureExtensions.find(extension); if(found != futureExtensions.end()) { diff --git a/src/Context.h b/src/Context.h index e57cbeab2..077ba3dc9 100644 --- a/src/Context.h +++ b/src/Context.h @@ -181,7 +181,7 @@ class MAGNUM_EXPORT Context { * * @see flags() */ - typedef Corrade::Containers::EnumSet Flags; + typedef Containers::EnumSet Flags; /** * @brief Constructor diff --git a/src/DebugTools/Test/ForceRendererTest.cpp b/src/DebugTools/Test/ForceRendererTest.cpp index 5dcf4022c..e02d3ce7d 100644 --- a/src/DebugTools/Test/ForceRendererTest.cpp +++ b/src/DebugTools/Test/ForceRendererTest.cpp @@ -28,7 +28,7 @@ namespace Magnum { namespace DebugTools { namespace Implementation { namespace Test { -class ForceRendererTest: public Corrade::TestSuite::Tester { +class ForceRendererTest: public TestSuite::Tester { public: explicit ForceRendererTest(); diff --git a/src/DebugTools/Test/LineSegmentRendererTest.cpp b/src/DebugTools/Test/LineSegmentRendererTest.cpp index 5e0a056bc..c87f992d3 100644 --- a/src/DebugTools/Test/LineSegmentRendererTest.cpp +++ b/src/DebugTools/Test/LineSegmentRendererTest.cpp @@ -31,7 +31,7 @@ namespace Magnum { namespace DebugTools { namespace Test { -class LineSegmentRendererTest: public Corrade::TestSuite::Tester { +class LineSegmentRendererTest: public TestSuite::Tester { public: explicit LineSegmentRendererTest(); diff --git a/src/Magnum.h b/src/Magnum.h index e3bc518da..f6a867746 100644 --- a/src/Magnum.h +++ b/src/Magnum.h @@ -63,6 +63,9 @@ namespace Math { #endif } +/* Bring whole Corrade namespace */ +using namespace Corrade; + /* Bring debugging facility from Corrade::Utility namespace */ using Corrade::Utility::Debug; using Corrade::Utility::Warning; diff --git a/src/MeshTools/Clean.h b/src/MeshTools/Clean.h index 873c6fbc0..40577dd0e 100644 --- a/src/MeshTools/Clean.h +++ b/src/MeshTools/Clean.h @@ -33,6 +33,7 @@ #include #include "Math/Vector.h" +#include "Magnum.h" namespace Magnum { namespace MeshTools { @@ -110,7 +111,7 @@ template class Clean { class IndexHash { public: inline std::size_t operator()(const Math::Vector& data) const { - return *reinterpret_cast(Corrade::Utility::MurmurHash2()(reinterpret_cast(&data), sizeof(data)).byteArray()); + return *reinterpret_cast(Utility::MurmurHash2()(reinterpret_cast(&data), sizeof(data)).byteArray()); } }; diff --git a/src/MeshTools/Test/CleanTest.cpp b/src/MeshTools/Test/CleanTest.cpp index 8e15281c9..7f5d5fdc4 100644 --- a/src/MeshTools/Test/CleanTest.cpp +++ b/src/MeshTools/Test/CleanTest.cpp @@ -28,7 +28,7 @@ namespace Magnum { namespace MeshTools { namespace Test { -class CleanTest: public Corrade::TestSuite::Tester { +class CleanTest: public TestSuite::Tester { public: CleanTest(); diff --git a/src/MeshTools/Test/CombineIndexedArraysTest.cpp b/src/MeshTools/Test/CombineIndexedArraysTest.cpp index 45fb104aa..cf9cd103b 100644 --- a/src/MeshTools/Test/CombineIndexedArraysTest.cpp +++ b/src/MeshTools/Test/CombineIndexedArraysTest.cpp @@ -31,7 +31,7 @@ namespace Magnum { namespace MeshTools { namespace Test { -class CombineIndexedArraysTest: public Corrade::TestSuite::Tester { +class CombineIndexedArraysTest: public TestSuite::Tester { public: CombineIndexedArraysTest(); diff --git a/src/MeshTools/Test/CompressIndicesTest.cpp b/src/MeshTools/Test/CompressIndicesTest.cpp index a433c1413..e4a7b0f1d 100644 --- a/src/MeshTools/Test/CompressIndicesTest.cpp +++ b/src/MeshTools/Test/CompressIndicesTest.cpp @@ -27,11 +27,9 @@ #include "MeshTools/CompressIndices.h" -using Corrade::Utility::Endianness; - namespace Magnum { namespace MeshTools { namespace Test { -class CompressIndicesTest: public Corrade::TestSuite::Tester { +class CompressIndicesTest: public TestSuite::Tester { public: CompressIndicesTest(); @@ -70,7 +68,7 @@ void CompressIndicesTest::compressShort() { CORRADE_COMPARE(indexCount, 4); CORRADE_VERIFY(indexType == Mesh::IndexType::UnsignedShort); - if(!Endianness::isBigEndian()) { + if(!Utility::Endianness::isBigEndian()) { CORRADE_COMPARE(std::vector(data, data+indexCount*Mesh::indexSize(indexType)), (std::vector{ 0x01, 0x00, 0x00, 0x01, @@ -97,7 +95,7 @@ void CompressIndicesTest::compressInt() { CORRADE_COMPARE(indexCount, 3); CORRADE_VERIFY(indexType == Mesh::IndexType::UnsignedInt); - if(!Endianness::isBigEndian()) { + if(!Utility::Endianness::isBigEndian()) { CORRADE_COMPARE(std::vector(data, data+indexCount*Mesh::indexSize(indexType)), (std::vector{ 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, diff --git a/src/MeshTools/Test/FlipNormalsTest.cpp b/src/MeshTools/Test/FlipNormalsTest.cpp index 47c648827..fb6106f47 100644 --- a/src/MeshTools/Test/FlipNormalsTest.cpp +++ b/src/MeshTools/Test/FlipNormalsTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace MeshTools { namespace Test { -class FlipNormalsTest: public Corrade::TestSuite::Tester { +class FlipNormalsTest: public TestSuite::Tester { public: FlipNormalsTest(); diff --git a/src/MeshTools/Test/GenerateFlatNormalsTest.cpp b/src/MeshTools/Test/GenerateFlatNormalsTest.cpp index 00b661266..fe3080cab 100644 --- a/src/MeshTools/Test/GenerateFlatNormalsTest.cpp +++ b/src/MeshTools/Test/GenerateFlatNormalsTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace MeshTools { namespace Test { -class GenerateFlatNormalsTest: public Corrade::TestSuite::Tester { +class GenerateFlatNormalsTest: public TestSuite::Tester { public: GenerateFlatNormalsTest(); diff --git a/src/MeshTools/Test/InterleaveTest.cpp b/src/MeshTools/Test/InterleaveTest.cpp index fe525edda..d987be6ee 100644 --- a/src/MeshTools/Test/InterleaveTest.cpp +++ b/src/MeshTools/Test/InterleaveTest.cpp @@ -29,8 +29,6 @@ #include "Utility/Debug.h" #include "MeshTools/Interleave.h" -using Corrade::Utility::Endianness; - namespace Magnum { namespace MeshTools { namespace Test { class InterleaveTest: public Corrade::TestSuite::Tester { @@ -95,7 +93,7 @@ void InterleaveTest::write() { CORRADE_COMPARE(attributeCount, std::size_t(3)); CORRADE_COMPARE(stride, std::size_t(7)); std::size_t size = attributeCount*stride; - if(!Endianness::isBigEndian()) { + if(!Utility::Endianness::isBigEndian()) { CORRADE_COMPARE(std::vector(data, data+size), (std::vector{ 0x00, 0x03, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x07, 0x00, @@ -124,7 +122,7 @@ void InterleaveTest::writeGaps() { CORRADE_COMPARE(attributeCount, std::size_t(3)); CORRADE_COMPARE(stride, std::size_t(12)); std::size_t size = attributeCount*stride; - if(!Endianness::isBigEndian()) { + if(!Utility::Endianness::isBigEndian()) { CORRADE_COMPARE(std::vector(data, data+size), (std::vector{ 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, diff --git a/src/MeshTools/Test/SubdivideTest.cpp b/src/MeshTools/Test/SubdivideTest.cpp index 9271e3d60..f303ed283 100644 --- a/src/MeshTools/Test/SubdivideTest.cpp +++ b/src/MeshTools/Test/SubdivideTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace MeshTools { namespace Test { -class SubdivideTest: public Corrade::TestSuite::Tester { +class SubdivideTest: public TestSuite::Tester { public: SubdivideTest(); diff --git a/src/MeshTools/Test/TipsifyTest.cpp b/src/MeshTools/Test/TipsifyTest.cpp index 096b2fe2e..61da9fd17 100644 --- a/src/MeshTools/Test/TipsifyTest.cpp +++ b/src/MeshTools/Test/TipsifyTest.cpp @@ -24,11 +24,12 @@ #include +#include "Magnum.h" #include "MeshTools/Tipsify.h" namespace Magnum { namespace MeshTools { namespace Test { -class TipsifyTest: public Corrade::TestSuite::Tester { +class TipsifyTest: public TestSuite::Tester { public: TipsifyTest(); diff --git a/src/MeshTools/Test/TransformTest.cpp b/src/MeshTools/Test/TransformTest.cpp index 7d632c879..ab0d46a68 100644 --- a/src/MeshTools/Test/TransformTest.cpp +++ b/src/MeshTools/Test/TransformTest.cpp @@ -31,7 +31,7 @@ namespace Magnum { namespace MeshTools { namespace Test { -class TransformTest: public Corrade::TestSuite::Tester { +class TransformTest: public TestSuite::Tester { public: explicit TransformTest(); diff --git a/src/Platform/AbstractXApplication.cpp b/src/Platform/AbstractXApplication.cpp index 80e6e7215..6a38ad9ec 100644 --- a/src/Platform/AbstractXApplication.cpp +++ b/src/Platform/AbstractXApplication.cpp @@ -159,7 +159,7 @@ int AbstractXApplication::exec() { if(flags & Flag::Redraw) { flags &= ~Flag::Redraw; drawEvent(); - } else Corrade::Utility::sleep(5); + } else Utility::sleep(5); } return 0; diff --git a/src/Platform/AbstractXApplication.h b/src/Platform/AbstractXApplication.h index 649ca4d63..bd11e2c11 100644 --- a/src/Platform/AbstractXApplication.h +++ b/src/Platform/AbstractXApplication.h @@ -154,7 +154,7 @@ class AbstractXApplication { Exit = 1 << 1 }; - typedef Corrade::Containers::EnumSet Flags; + typedef Containers::EnumSet Flags; CORRADE_ENUMSET_FRIEND_OPERATORS(Flags) Display* display; @@ -261,7 +261,7 @@ class AbstractXApplication::InputEvent { * * @see modifiers() */ - typedef Corrade::Containers::EnumSet Modifiers; + typedef Containers::EnumSet Modifiers; inline virtual ~InputEvent() {} diff --git a/src/Platform/NaClApplication.h b/src/Platform/NaClApplication.h index 98057cb81..1556be0e4 100644 --- a/src/Platform/NaClApplication.h +++ b/src/Platform/NaClApplication.h @@ -218,7 +218,7 @@ class NaClApplication: public pp::Instance, public pp::Graphics3DClient, public WillBeFullscreen = 1 << 4, MouseLocked = 1 << 5 }; - typedef Corrade::Containers::EnumSet Flags; + typedef Containers::EnumSet Flags; inline void Graphics3DContextLost() override { CORRADE_ASSERT(false, "NaClApplication: context unexpectedly lost", ); @@ -334,7 +334,7 @@ class NaClApplication::InputEvent { * * @see modifiers() */ - typedef Corrade::Containers::EnumSet Modifiers; + typedef Containers::EnumSet Modifiers; inline virtual ~InputEvent() {} diff --git a/src/Platform/Sdl2Application.h b/src/Platform/Sdl2Application.h index 4ad702b69..db1cf2cfb 100644 --- a/src/Platform/Sdl2Application.h +++ b/src/Platform/Sdl2Application.h @@ -170,7 +170,7 @@ class Sdl2Application { Exit = 1 << 1 }; - typedef Corrade::Containers::EnumSet Flags; + typedef Containers::EnumSet Flags; CORRADE_ENUMSET_FRIEND_OPERATORS(Flags) void initialize(); @@ -219,7 +219,7 @@ class Sdl2Application::Configuration { * * @see setFlags() */ - typedef Corrade::Containers::EnumSet Flags; @@ -327,7 +327,7 @@ class Sdl2Application::InputEvent { * @see KeyEvent::modifiers(), MouseEvent::modifiers(), * MouseMoveEvent::modifiers() */ - typedef Corrade::Containers::EnumSet Modifiers; + typedef Containers::EnumSet Modifiers; inline virtual ~InputEvent() {} diff --git a/src/Primitives/Cylinder.h b/src/Primitives/Cylinder.h index ed38da5ae..0a08fcf2b 100644 --- a/src/Primitives/Cylinder.h +++ b/src/Primitives/Cylinder.h @@ -30,6 +30,7 @@ #include +#include "Magnum.h" #include "Primitives/magnumPrimitivesVisibility.h" #include "Trade/Trade.h" @@ -53,7 +54,7 @@ class MAGNUM_PRIMITIVES_EXPORT Cylinder { }; /** @brief %Flags */ - typedef Corrade::Containers::EnumSet Flags; + typedef Containers::EnumSet Flags; /** * @brief Solid cylinder diff --git a/src/Primitives/Test/CapsuleTest.cpp b/src/Primitives/Test/CapsuleTest.cpp index 56b5bc569..33b3da9f2 100644 --- a/src/Primitives/Test/CapsuleTest.cpp +++ b/src/Primitives/Test/CapsuleTest.cpp @@ -32,11 +32,9 @@ #include "Trade/MeshData3D.h" #include "Primitives/Capsule.h" -using Corrade::TestSuite::Compare::Container; - namespace Magnum { namespace Primitives { namespace Test { -class CapsuleTest: public Corrade::TestSuite::Tester { +class CapsuleTest: public TestSuite::Tester { public: CapsuleTest(); @@ -76,7 +74,7 @@ void CapsuleTest::withoutTextureCoords() { {-0.612372f, 1.20711f, -0.353553f}, {0.0f, 1.5f, 0.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*capsule.normals(0), (std::vector{ {0.0f, -1.0f, 0.0f}, @@ -102,7 +100,7 @@ void CapsuleTest::withoutTextureCoords() { {-0.612372f, 0.707107f, -0.353553f}, {0.0f, 1.0f, 0.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*capsule.indices(), (std::vector{ 0, 2, 1, 0, 3, 2, 0, 1, 3, @@ -111,7 +109,7 @@ void CapsuleTest::withoutTextureCoords() { 7, 8, 11, 7, 11, 10, 8, 9, 12, 8, 12, 11, 9, 7, 10, 9, 10, 12, 10, 11, 14, 10, 14, 13, 11, 12, 15, 11, 15, 14, 12, 10, 13, 12, 13, 15, 13, 14, 16, 14, 15, 16, 15, 13, 16 - }), Container); + }), TestSuite::Compare::Container); } void CapsuleTest::withTextureCoords() { @@ -146,7 +144,7 @@ void CapsuleTest::withTextureCoords() { {0.0f, 1.20711f, 0.707107f}, {0.0f, 1.5f, 0.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*capsule.textureCoords2D(0), (std::vector{ {0.5f, 0.0f}, @@ -177,7 +175,7 @@ void CapsuleTest::withTextureCoords() { {1.0f, 0.833333f}, {0.5f, 1.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*capsule.indices(), (std::vector{ 0, 2, 1, 0, 3, 2, 0, 4, 3, @@ -186,7 +184,7 @@ void CapsuleTest::withTextureCoords() { 9, 10, 14, 9, 14, 13, 10, 11, 15, 10, 15, 14, 11, 12, 16, 11, 16, 15, 13, 14, 18, 13, 18, 17, 14, 15, 19, 14, 19, 18, 15, 16, 20, 15, 20, 19, 17, 18, 21, 18, 19, 21, 19, 20, 21 - }), Container); + }), TestSuite::Compare::Container); } }}} diff --git a/src/Primitives/Test/CircleTest.cpp b/src/Primitives/Test/CircleTest.cpp index da396522f..58c763af2 100644 --- a/src/Primitives/Test/CircleTest.cpp +++ b/src/Primitives/Test/CircleTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Primitives { namespace Test { -class CircleTest: public Corrade::TestSuite::Tester { +class CircleTest: public TestSuite::Tester { public: explicit CircleTest(); diff --git a/src/Primitives/Test/CylinderTest.cpp b/src/Primitives/Test/CylinderTest.cpp index ef861c206..f999cde89 100644 --- a/src/Primitives/Test/CylinderTest.cpp +++ b/src/Primitives/Test/CylinderTest.cpp @@ -29,11 +29,9 @@ #include "Primitives/Cylinder.h" #include "Trade/MeshData3D.h" -using Corrade::TestSuite::Compare::Container; - namespace Magnum { namespace Primitives { namespace Test { -class CylinderTest: public Corrade::TestSuite::Tester { +class CylinderTest: public TestSuite::Tester { public: CylinderTest(); @@ -61,7 +59,7 @@ void CylinderTest::withoutAnything() { {0.0f, 1.5f, 1.0f}, {0.866025f, 1.5f, -0.5f}, {-0.866025f, 1.5f, -0.5f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*cylinder.normals(0), (std::vector{ {0.0f, 0.0f, 1.0f}, @@ -75,12 +73,12 @@ void CylinderTest::withoutAnything() { {0.0f, 0.0f, 1.0f}, {0.866025f, 0.0f, -0.5f}, {-0.866025f, 0.0f, -0.5f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*cylinder.indices(), (std::vector{ 0, 1, 4, 0, 4, 3, 1, 2, 5, 1, 5, 4, 2, 0, 3, 2, 3, 5, 3, 4, 7, 3, 7, 6, 4, 5, 8, 4, 8, 7, 5, 3, 6, 5, 6, 8 - }), Container); + }), TestSuite::Compare::Container); } void CylinderTest::withTextureCoordsAndCaps() { @@ -115,7 +113,7 @@ void CylinderTest::withTextureCoordsAndCaps() { {0.0f, 1.5f, 1.0f}, {0.0f, 1.5f, 0.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*cylinder.normals(0), (std::vector{ {0.0f, -1.0f, 0.0f}, @@ -146,7 +144,7 @@ void CylinderTest::withTextureCoordsAndCaps() { {0.0f, 1.0f, 0.0f}, {0.0f, 1.0f, 0.0f}, - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*cylinder.textureCoords2D(0), (std::vector{ {0.5f, 0.0f}, @@ -177,14 +175,14 @@ void CylinderTest::withTextureCoordsAndCaps() { {1.0f, 0.8f}, {0.5f, 1.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*cylinder.indices(), (std::vector{ 0, 2, 1, 0, 3, 2, 0, 4, 3, 1, 2, 6, 1, 6, 5, 2, 3, 7, 2, 7, 6, 3, 4, 8, 3, 8, 7, 5, 6, 10, 5, 10, 9, 6, 7, 11, 6, 11, 10, 7, 8, 12, 7, 12, 11, 17, 18, 21, 18, 19, 21, 19, 20, 21 - }), Container); + }), TestSuite::Compare::Container); } }}} diff --git a/src/Primitives/Test/UVSphereTest.cpp b/src/Primitives/Test/UVSphereTest.cpp index 93cb2ff1f..9403d79ff 100644 --- a/src/Primitives/Test/UVSphereTest.cpp +++ b/src/Primitives/Test/UVSphereTest.cpp @@ -29,11 +29,9 @@ #include "Primitives/UVSphere.h" #include "Trade/MeshData3D.h" -using Corrade::TestSuite::Compare::Container; - namespace Magnum { namespace Primitives { namespace Test { -class UVSphereTest: public Corrade::TestSuite::Tester { +class UVSphereTest: public TestSuite::Tester { public: UVSphereTest(); @@ -61,7 +59,7 @@ void UVSphereTest::withoutTextureCoords() { {-0.75f, 0.5f, -0.433013f}, {0.0f, 1.0f, 0.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*sphere.normals(0), (std::vector{ {0.0f, -1.0f, 0.0f}, @@ -75,13 +73,13 @@ void UVSphereTest::withoutTextureCoords() { {-0.75f, 0.5f, -0.433013f}, {0.0f, 1.0f, 0.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*sphere.indices(), (std::vector{ 0, 2, 1, 0, 3, 2, 0, 1, 3, 1, 2, 5, 1, 5, 4, 2, 3, 6, 2, 6, 5, 3, 1, 4, 3, 4, 6, 4, 5, 7, 5, 6, 7, 6, 4, 7 - }), Container); + }), TestSuite::Compare::Container); } void UVSphereTest::withTextureCoords() { @@ -101,7 +99,7 @@ void UVSphereTest::withTextureCoords() { {0.0f, 0.5f, 0.866025f}, {0.0f, 1.0f, 0.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*sphere.textureCoords2D(0), (std::vector{ {0.5f, 0.0f}, @@ -117,13 +115,13 @@ void UVSphereTest::withTextureCoords() { {1.0f, 0.666667f}, {0.5f, 1.0f} - }), Container); + }), TestSuite::Compare::Container); CORRADE_COMPARE_AS(*sphere.indices(), (std::vector{ 0, 2, 1, 0, 3, 2, 0, 4, 3, 1, 2, 6, 1, 6, 5, 2, 3, 7, 2, 7, 6, 3, 4, 8, 3, 8, 7, 5, 6, 9, 6, 7, 9, 7, 8, 9 - }), Container); + }), TestSuite::Compare::Container); } }}} diff --git a/src/Resource.h b/src/Resource.h index 17b053f9a..e79d77ad0 100644 --- a/src/Resource.h +++ b/src/Resource.h @@ -78,7 +78,7 @@ See ResourceManager for more information. @see ResourceManager::referenceCount(), ResourceManager::state(), ResourceManager::get(), ResourceManager::set(), Resource::key() */ -class ResourceKey: public Corrade::Utility::MurmurHash2::Digest { +class ResourceKey: public Utility::MurmurHash2::Digest { public: /** * @brief Default constructor @@ -89,18 +89,18 @@ class ResourceKey: public Corrade::Utility::MurmurHash2::Digest { inline constexpr ResourceKey() {} /** @brief Constructor */ - inline ResourceKey(const std::string& key): Corrade::Utility::MurmurHash2::Digest(Corrade::Utility::MurmurHash2()(key)) {} + inline ResourceKey(const std::string& key): Utility::MurmurHash2::Digest(Utility::MurmurHash2()(key)) {} /** * @brief Constructor * @todo constexpr */ - template inline constexpr ResourceKey(const char(&key)[size]): Corrade::Utility::MurmurHash2::Digest(Corrade::Utility::MurmurHash2()(key)) {} + template inline constexpr ResourceKey(const char(&key)[size]): Utility::MurmurHash2::Digest(Utility::MurmurHash2()(key)) {} }; /** @debugoperator{Magnum::ResourceKey} */ inline Debug operator<<(Debug debug, const ResourceKey& value) { - return debug << static_cast&>(value); + return debug << static_cast&>(value); } namespace Implementation { diff --git a/src/ResourceManager.h b/src/ResourceManager.h index 9527dd83c..cfd9c90de 100644 --- a/src/ResourceManager.h +++ b/src/ResourceManager.h @@ -169,7 +169,7 @@ namespace Implementation { /* If nothing is referencing reference-counted resource, we're done */ if(policy == ResourcePolicy::ReferenceCounted && (it == _data.end() || it->second.referenceCount == 0)) { - Corrade::Utility::Warning() << "ResourceManager: Reference-counted resource with key" << key << "isn't referenced from anywhere, deleting it immediately"; + Warning() << "ResourceManager: Reference-counted resource with key" << key << "isn't referenced from anywhere, deleting it immediately"; delete data; /* Delete also already present resource (it could be here diff --git a/src/SceneGraph/AbstractFeature.h b/src/SceneGraph/AbstractFeature.h index a0f0e242c..a95145ec0 100644 --- a/src/SceneGraph/AbstractFeature.h +++ b/src/SceneGraph/AbstractFeature.h @@ -42,7 +42,7 @@ namespace Implementation { InvertedAbsolute = 1 << 1 }; - typedef Corrade::Containers::EnumSet FeatureCachedTransformations; + typedef Containers::EnumSet FeatureCachedTransformations; CORRADE_ENUMSET_OPERATORS(FeatureCachedTransformations) } @@ -136,13 +136,13 @@ AbstractFeature.hpp implementation file to avoid linker errors. See also @see AbstractFeature2D, AbstractFeature3D */ #ifndef DOXYGEN_GENERATING_OUTPUT -template class MAGNUM_SCENEGRAPH_EXPORT AbstractFeature: private Corrade::Containers::LinkedListItem, AbstractObject> +template class MAGNUM_SCENEGRAPH_EXPORT AbstractFeature: private Containers::LinkedListItem, AbstractObject> #else template class AbstractFeature #endif { - friend class Corrade::Containers::LinkedList>; - friend class Corrade::Containers::LinkedListItem, AbstractObject>; + friend class Containers::LinkedList>; + friend class Containers::LinkedListItem, AbstractObject>; template friend class Object; public: @@ -156,32 +156,32 @@ template class AbstractFeature /** @brief %Object holding this feature */ inline AbstractObject* object() { - return Corrade::Containers::LinkedListItem, AbstractObject>::list(); + return Containers::LinkedListItem, AbstractObject>::list(); } /** @overload */ inline const AbstractObject* object() const { - return Corrade::Containers::LinkedListItem, AbstractObject>::list(); + return Containers::LinkedListItem, AbstractObject>::list(); } /** @brief Previous feature or `nullptr`, if this is first feature */ inline AbstractFeature* previousFeature() { - return Corrade::Containers::LinkedListItem, AbstractObject>::previous(); + return Containers::LinkedListItem, AbstractObject>::previous(); } /** @overload */ inline const AbstractFeature* previousFeature() const { - return Corrade::Containers::LinkedListItem, AbstractObject>::previous(); + return Containers::LinkedListItem, AbstractObject>::previous(); } /** @brief Next feature or `nullptr`, if this is last feature */ inline AbstractFeature* nextFeature() { - return Corrade::Containers::LinkedListItem, AbstractObject>::next(); + return Containers::LinkedListItem, AbstractObject>::next(); } /** @overload */ inline const AbstractFeature* nextFeature() const { - return Corrade::Containers::LinkedListItem, AbstractObject>::next(); + return Containers::LinkedListItem, AbstractObject>::next(); } /** @@ -229,7 +229,7 @@ template class AbstractFeature #ifndef DOXYGEN_GENERATING_OUTPUT typedef Implementation::FeatureCachedTransformations CachedTransformations; #else - typedef Corrade::Containers::EnumSet CachedTransformations; + typedef Containers::EnumSet CachedTransformations; #endif /** diff --git a/src/SceneGraph/AbstractFeature.hpp b/src/SceneGraph/AbstractFeature.hpp index 19de9f3c3..f0da6915e 100644 --- a/src/SceneGraph/AbstractFeature.hpp +++ b/src/SceneGraph/AbstractFeature.hpp @@ -33,7 +33,7 @@ namespace Magnum { namespace SceneGraph { template AbstractFeature::AbstractFeature(AbstractObject* object) { - object->Corrade::Containers::template LinkedList>::insert(this); + object->Containers::template LinkedList>::insert(this); } template AbstractFeature::~AbstractFeature() = default; diff --git a/src/SceneGraph/AbstractObject.h b/src/SceneGraph/AbstractObject.h index 41c751230..9dee8d3f2 100644 --- a/src/SceneGraph/AbstractObject.h +++ b/src/SceneGraph/AbstractObject.h @@ -57,13 +57,13 @@ for(AbstractFeature* feature = o->firstFeature(); feature; feature = feature->ne @see AbstractObject2D, AbstractObject3D */ #ifndef DOXYGEN_GENERATING_OUTPUT -template class MAGNUM_SCENEGRAPH_EXPORT AbstractObject: private Corrade::Containers::LinkedList> +template class MAGNUM_SCENEGRAPH_EXPORT AbstractObject: private Containers::LinkedList> #else template class AbstractObject #endif { - friend class Corrade::Containers::LinkedList>; - friend class Corrade::Containers::LinkedListItem, AbstractObject>; + friend class Containers::LinkedList>; + friend class Containers::LinkedListItem, AbstractObject>; friend class AbstractFeature; public: @@ -75,27 +75,27 @@ template class AbstractObject /** @brief Whether this object has features */ inline bool hasFeatures() const { - return !Corrade::Containers::LinkedList>::isEmpty(); + return !Containers::LinkedList>::isEmpty(); } /** @brief First object feature or `nullptr`, if this object has no features */ inline FeatureType* firstFeature() { - return Corrade::Containers::LinkedList>::first(); + return Containers::LinkedList>::first(); } /** @overload */ inline const FeatureType* firstFeature() const { - return Corrade::Containers::LinkedList>::first(); + return Containers::LinkedList>::first(); } /** @brief Last object feature or `nullptr`, if this object has no features */ inline FeatureType* lastFeature() { - return Corrade::Containers::LinkedList>::last(); + return Containers::LinkedList>::last(); } /** @overload */ inline const FeatureType* lastFeature() const { - return Corrade::Containers::LinkedList>::last(); + return Containers::LinkedList>::last(); } /** diff --git a/src/SceneGraph/DualComplexTransformation.h b/src/SceneGraph/DualComplexTransformation.h index 8f96126cb..a63d2eb38 100644 --- a/src/SceneGraph/DualComplexTransformation.h +++ b/src/SceneGraph/DualComplexTransformation.h @@ -151,7 +151,7 @@ class DualComplexTransformation: public AbstractTranslationRotation2D { * @return Pointer to self (for method chaining) */ inline DualComplexTransformation* move(Object>* under) { - static_cast*>(this)->Corrade::Containers::template LinkedList>>::move(this, under); + static_cast*>(this)->Containers::template LinkedList>>::move(this, under); return this; } diff --git a/src/SceneGraph/MatrixTransformation2D.h b/src/SceneGraph/MatrixTransformation2D.h index 80b1bd294..3c3baca0e 100644 --- a/src/SceneGraph/MatrixTransformation2D.h +++ b/src/SceneGraph/MatrixTransformation2D.h @@ -153,7 +153,7 @@ class MatrixTransformation2D: public AbstractTranslationRotationScaling2D { * @return Pointer to self (for method chaining) */ inline MatrixTransformation2D* move(Object>* under) { - static_cast*>(this)->Corrade::Containers::template LinkedList>>::move(this, under); + static_cast*>(this)->Containers::template LinkedList>>::move(this, under); return this; } diff --git a/src/SceneGraph/Object.h b/src/SceneGraph/Object.h index 5dbfcdb45..d58ca702c 100644 --- a/src/SceneGraph/Object.h +++ b/src/SceneGraph/Object.h @@ -44,7 +44,7 @@ namespace Implementation { Joint = 1 << 2 }; - typedef Corrade::Containers::EnumSet ObjectFlags; + typedef Containers::EnumSet ObjectFlags; CORRADE_ENUMSET_OPERATORS(ObjectFlags) } @@ -90,11 +90,11 @@ See @ref compilation-speedup-hpp for more information. */ template class MAGNUM_SCENEGRAPH_EXPORT Object: public AbstractObject, public Transformation #ifndef DOXYGEN_GENERATING_OUTPUT - , private Corrade::Containers::LinkedList>, private Corrade::Containers::LinkedListItem, Object> + , private Containers::LinkedList>, private Containers::LinkedListItem, Object> #endif { - friend class Corrade::Containers::LinkedList>; - friend class Corrade::Containers::LinkedListItem, Object>; + friend class Containers::LinkedList>; + friend class Containers::LinkedListItem, Object>; #ifndef DOXYGEN_GENERATING_OUTPUT Object(const Object&) = delete; @@ -149,57 +149,57 @@ template class MAGNUM_SCENEGRAPH_EXPORT Object: public Abs /** @brief Parent object or `nullptr`, if this is root object */ inline Object* parent() { - return Corrade::Containers::LinkedListItem, Object>::list(); + return Containers::LinkedListItem, Object>::list(); } /** @overload */ inline const Object* parent() const { - return Corrade::Containers::LinkedListItem, Object>::list(); + return Containers::LinkedListItem, Object>::list(); } /** @brief Previous sibling object or `nullptr`, if this is first object */ inline Object* previousSibling() { - return Corrade::Containers::LinkedListItem, Object>::previous(); + return Containers::LinkedListItem, Object>::previous(); } /** @overload */ inline const Object* previousSibling() const { - return Corrade::Containers::LinkedListItem, Object>::previous(); + return Containers::LinkedListItem, Object>::previous(); } /** @brief Next sibling object or `nullptr`, if this is last object */ inline Object* nextSibling() { - return Corrade::Containers::LinkedListItem, Object>::next(); + return Containers::LinkedListItem, Object>::next(); } /** @overload */ inline const Object* nextSibling() const { - return Corrade::Containers::LinkedListItem, Object>::next(); + return Containers::LinkedListItem, Object>::next(); } /** @brief Whether this object has children */ inline bool hasChildren() const { - return !Corrade::Containers::LinkedList>::isEmpty(); + return !Containers::LinkedList>::isEmpty(); } /** @brief First child object or `nullptr`, if this object has no children */ inline Object* firstChild() { - return Corrade::Containers::LinkedList>::first(); + return Containers::LinkedList>::first(); } /** @overload */ inline const Object* firstChild() const { - return Corrade::Containers::LinkedList>::first(); + return Containers::LinkedList>::first(); } /** @brief Last child object or `nullptr`, if this object has no children */ inline Object* lastChild() { - return Corrade::Containers::LinkedList>::last(); + return Containers::LinkedList>::last(); } /** @overload */ inline const Object* lastChild() const { - return Corrade::Containers::LinkedList>::last(); + return Containers::LinkedList>::last(); } /** diff --git a/src/SceneGraph/Object.hpp b/src/SceneGraph/Object.hpp index 62bf892f1..246a20cf7 100644 --- a/src/SceneGraph/Object.hpp +++ b/src/SceneGraph/Object.hpp @@ -78,10 +78,10 @@ template Object* Object::s } /* Remove the object from old parent children list */ - if(this->parent()) this->parent()->Corrade::Containers::template LinkedList>::cut(this); + if(this->parent()) this->parent()->Containers::template LinkedList>::cut(this); /* Add the object to list of new parent */ - if(parent) parent->Corrade::Containers::LinkedList>::insert(this); + if(parent) parent->Containers::LinkedList>::insert(this); setDirty(); return this; diff --git a/src/SceneGraph/RigidMatrixTransformation2D.h b/src/SceneGraph/RigidMatrixTransformation2D.h index 4d49c2a5b..c73c42c96 100644 --- a/src/SceneGraph/RigidMatrixTransformation2D.h +++ b/src/SceneGraph/RigidMatrixTransformation2D.h @@ -170,7 +170,7 @@ class RigidMatrixTransformation2D: public AbstractTranslationRotation2D { * @return Pointer to self (for method chaining) */ inline RigidMatrixTransformation2D* move(Object>* under) { - static_cast*>(this)->Corrade::Containers::template LinkedList>>::move(this, under); + static_cast*>(this)->Containers::template LinkedList>>::move(this, under); return this; } diff --git a/src/SceneGraph/Test/AnimableTest.cpp b/src/SceneGraph/Test/AnimableTest.cpp index fb0ebb643..3f6e02adf 100644 --- a/src/SceneGraph/Test/AnimableTest.cpp +++ b/src/SceneGraph/Test/AnimableTest.cpp @@ -31,7 +31,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { -class AnimableTest: public Corrade::TestSuite::Tester { +class AnimableTest: public TestSuite::Tester { public: AnimableTest(); diff --git a/src/SceneGraph/Test/CameraTest.cpp b/src/SceneGraph/Test/CameraTest.cpp index 8c0c91e9e..189ac777f 100644 --- a/src/SceneGraph/Test/CameraTest.cpp +++ b/src/SceneGraph/Test/CameraTest.cpp @@ -34,7 +34,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { -class CameraTest: public Corrade::TestSuite::Tester { +class CameraTest: public TestSuite::Tester { public: CameraTest(); diff --git a/src/SceneGraph/Test/DualComplexTransformationTest.cpp b/src/SceneGraph/Test/DualComplexTransformationTest.cpp index d9c71d1c9..853051f58 100644 --- a/src/SceneGraph/Test/DualComplexTransformationTest.cpp +++ b/src/SceneGraph/Test/DualComplexTransformationTest.cpp @@ -33,7 +33,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { typedef Object> Object2D; typedef Scene> Scene2D; -class DualComplexTransformationTest: public Corrade::TestSuite::Tester { +class DualComplexTransformationTest: public TestSuite::Tester { public: explicit DualComplexTransformationTest(); diff --git a/src/SceneGraph/Test/DualQuaternionTransformationTest.cpp b/src/SceneGraph/Test/DualQuaternionTransformationTest.cpp index 6de60f080..bfacea1a6 100644 --- a/src/SceneGraph/Test/DualQuaternionTransformationTest.cpp +++ b/src/SceneGraph/Test/DualQuaternionTransformationTest.cpp @@ -33,7 +33,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { typedef Object> Object3D; typedef Scene> Scene3D; -class DualQuaternionTransformationTest: public Corrade::TestSuite::Tester { +class DualQuaternionTransformationTest: public TestSuite::Tester { public: explicit DualQuaternionTransformationTest(); diff --git a/src/SceneGraph/Test/MatrixTransformation2DTest.cpp b/src/SceneGraph/Test/MatrixTransformation2DTest.cpp index 91576e87f..f000e4742 100644 --- a/src/SceneGraph/Test/MatrixTransformation2DTest.cpp +++ b/src/SceneGraph/Test/MatrixTransformation2DTest.cpp @@ -32,7 +32,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { typedef Object> Object2D; typedef Scene> Scene2D; -class MatrixTransformation2DTest: public Corrade::TestSuite::Tester { +class MatrixTransformation2DTest: public TestSuite::Tester { public: explicit MatrixTransformation2DTest(); diff --git a/src/SceneGraph/Test/MatrixTransformation3DTest.cpp b/src/SceneGraph/Test/MatrixTransformation3DTest.cpp index 651d8101d..955775572 100644 --- a/src/SceneGraph/Test/MatrixTransformation3DTest.cpp +++ b/src/SceneGraph/Test/MatrixTransformation3DTest.cpp @@ -32,7 +32,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { typedef Object> Object3D; typedef Scene> Scene3D; -class MatrixTransformation3DTest: public Corrade::TestSuite::Tester { +class MatrixTransformation3DTest: public TestSuite::Tester { public: explicit MatrixTransformation3DTest(); diff --git a/src/SceneGraph/Test/ObjectTest.cpp b/src/SceneGraph/Test/ObjectTest.cpp index 1e22753fb..74fa38c2b 100644 --- a/src/SceneGraph/Test/ObjectTest.cpp +++ b/src/SceneGraph/Test/ObjectTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { -class ObjectTest: public Corrade::TestSuite::Tester { +class ObjectTest: public TestSuite::Tester { public: ObjectTest(); diff --git a/src/SceneGraph/Test/RigidMatrixTransformation2DTest.cpp b/src/SceneGraph/Test/RigidMatrixTransformation2DTest.cpp index dccefa1b3..31d3625c9 100644 --- a/src/SceneGraph/Test/RigidMatrixTransformation2DTest.cpp +++ b/src/SceneGraph/Test/RigidMatrixTransformation2DTest.cpp @@ -33,7 +33,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { typedef Object> Object2D; typedef Scene> Scene2D; -class RigidMatrixTransformation2DTest: public Corrade::TestSuite::Tester { +class RigidMatrixTransformation2DTest: public TestSuite::Tester { public: explicit RigidMatrixTransformation2DTest(); diff --git a/src/SceneGraph/Test/RigidMatrixTransformation3DTest.cpp b/src/SceneGraph/Test/RigidMatrixTransformation3DTest.cpp index 2d14c3bab..7c9495a2d 100644 --- a/src/SceneGraph/Test/RigidMatrixTransformation3DTest.cpp +++ b/src/SceneGraph/Test/RigidMatrixTransformation3DTest.cpp @@ -33,7 +33,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { typedef Object> Object3D; typedef Scene> Scene3D; -class RigidMatrixTransformation3DTest: public Corrade::TestSuite::Tester { +class RigidMatrixTransformation3DTest: public TestSuite::Tester { public: explicit RigidMatrixTransformation3DTest(); diff --git a/src/SceneGraph/Test/SceneTest.cpp b/src/SceneGraph/Test/SceneTest.cpp index d3731a11d..a2a725504 100644 --- a/src/SceneGraph/Test/SceneTest.cpp +++ b/src/SceneGraph/Test/SceneTest.cpp @@ -29,7 +29,7 @@ namespace Magnum { namespace SceneGraph { namespace Test { -class SceneTest: public Corrade::TestSuite::Tester { +class SceneTest: public TestSuite::Tester { public: SceneTest(); diff --git a/src/Shaders/DistanceFieldVector.cpp b/src/Shaders/DistanceFieldVector.cpp index b7b78b171..da1e903da 100644 --- a/src/Shaders/DistanceFieldVector.cpp +++ b/src/Shaders/DistanceFieldVector.cpp @@ -39,7 +39,7 @@ namespace { } template DistanceFieldVector::DistanceFieldVector(): transformationProjectionMatrixUniform(0), colorUniform(1), outlineColorUniform(2), outlineRangeUniform(3), smoothnessUniform(4) { - Corrade::Utility::Resource rs("MagnumShaders"); + Utility::Resource rs("MagnumShaders"); #ifndef MAGNUM_TARGET_GLES Version v = Context::current()->supportedVersion({Version::GL320, Version::GL210}); diff --git a/src/Shaders/Flat.cpp b/src/Shaders/Flat.cpp index fdcb3fc6a..5eea01e5c 100644 --- a/src/Shaders/Flat.cpp +++ b/src/Shaders/Flat.cpp @@ -38,7 +38,7 @@ namespace { } template Flat::Flat(): transformationProjectionMatrixUniform(0), colorUniform(1) { - Corrade::Utility::Resource rs("MagnumShaders"); + Utility::Resource rs("MagnumShaders"); #ifndef MAGNUM_TARGET_GLES Version v = Context::current()->supportedVersion({Version::GL320, Version::GL210}); diff --git a/src/Shaders/MeshVisualizer.cpp b/src/Shaders/MeshVisualizer.cpp index 95316b973..8164074c3 100644 --- a/src/Shaders/MeshVisualizer.cpp +++ b/src/Shaders/MeshVisualizer.cpp @@ -37,7 +37,7 @@ MeshVisualizer::MeshVisualizer(const Flags flags): flags(flags), transformationP MAGNUM_ASSERT_EXTENSION_SUPPORTED(Extensions::GL::ARB::explicit_attrib_location); MAGNUM_ASSERT_EXTENSION_SUPPORTED(Extensions::GL::ARB::explicit_uniform_location); - Corrade::Utility::Resource rs("MagnumShaders"); + Utility::Resource rs("MagnumShaders"); Shader vert(Version::GL330, Shader::Type::Vertex); vert.addSource(flags & Flag::Wireframe ? "#define WIREFRAME_RENDERING\n" : "") diff --git a/src/Shaders/MeshVisualizer.h b/src/Shaders/MeshVisualizer.h index b8f4fac9f..e962a503f 100644 --- a/src/Shaders/MeshVisualizer.h +++ b/src/Shaders/MeshVisualizer.h @@ -59,7 +59,7 @@ class MAGNUM_SHADERS_EXPORT MeshVisualizer: public AbstractShaderProgram { }; /** @brief %Flags */ - typedef Corrade::Containers::EnumSet Flags; + typedef Containers::EnumSet Flags; /** * @brief Constructor diff --git a/src/Shaders/Phong.cpp b/src/Shaders/Phong.cpp index 3b5df96d4..c96fc0e01 100644 --- a/src/Shaders/Phong.cpp +++ b/src/Shaders/Phong.cpp @@ -32,7 +32,7 @@ namespace Magnum { namespace Shaders { Phong::Phong(): transformationMatrixUniform(0), projectionMatrixUniform(1), normalMatrixUniform(2), lightUniform(3), diffuseColorUniform(4), ambientColorUniform(5), specularColorUniform(6), lightColorUniform(7), shininessUniform(8) { - Corrade::Utility::Resource rs("MagnumShaders"); + Utility::Resource rs("MagnumShaders"); #ifndef MAGNUM_TARGET_GLES Version v = Context::current()->supportedVersion({Version::GL320, Version::GL210}); diff --git a/src/Shaders/Vector.cpp b/src/Shaders/Vector.cpp index 69b47713a..c6cd27079 100644 --- a/src/Shaders/Vector.cpp +++ b/src/Shaders/Vector.cpp @@ -39,7 +39,7 @@ namespace { } template Vector::Vector(): transformationProjectionMatrixUniform(0), colorUniform(1) { - Corrade::Utility::Resource rs("MagnumShaders"); + Utility::Resource rs("MagnumShaders"); #ifndef MAGNUM_TARGET_GLES Version v = Context::current()->supportedVersion({Version::GL320, Version::GL210}); diff --git a/src/Shaders/VertexColor.cpp b/src/Shaders/VertexColor.cpp index 0890137ca..205b3e66d 100644 --- a/src/Shaders/VertexColor.cpp +++ b/src/Shaders/VertexColor.cpp @@ -38,7 +38,7 @@ namespace { } template VertexColor::VertexColor(): transformationProjectionMatrixUniform(0) { - Corrade::Utility::Resource rs("MagnumShaders"); + Utility::Resource rs("MagnumShaders"); #ifndef MAGNUM_TARGET_GLES Version v = Context::current()->supportedVersion({Version::GL320, Version::GL210}); diff --git a/src/Shapes/Test/AxisAlignedBoxTest.cpp b/src/Shapes/Test/AxisAlignedBoxTest.cpp index ad53cbf00..8f4a940c5 100644 --- a/src/Shapes/Test/AxisAlignedBoxTest.cpp +++ b/src/Shapes/Test/AxisAlignedBoxTest.cpp @@ -31,7 +31,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class AxisAlignedBoxTest: public Corrade::TestSuite::Tester { +class AxisAlignedBoxTest: public TestSuite::Tester { public: AxisAlignedBoxTest(); diff --git a/src/Shapes/Test/BoxTest.cpp b/src/Shapes/Test/BoxTest.cpp index 96f49bb40..1be8e1c71 100644 --- a/src/Shapes/Test/BoxTest.cpp +++ b/src/Shapes/Test/BoxTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class BoxTest: public Corrade::TestSuite::Tester { +class BoxTest: public TestSuite::Tester { public: BoxTest(); diff --git a/src/Shapes/Test/CapsuleTest.cpp b/src/Shapes/Test/CapsuleTest.cpp index 18d3912ad..b4fd8a048 100644 --- a/src/Shapes/Test/CapsuleTest.cpp +++ b/src/Shapes/Test/CapsuleTest.cpp @@ -32,7 +32,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class CapsuleTest: public Corrade::TestSuite::Tester { +class CapsuleTest: public TestSuite::Tester { public: CapsuleTest(); diff --git a/src/Shapes/Test/CompositionTest.cpp b/src/Shapes/Test/CompositionTest.cpp index 001879f1d..e07e34a9d 100644 --- a/src/Shapes/Test/CompositionTest.cpp +++ b/src/Shapes/Test/CompositionTest.cpp @@ -34,7 +34,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class CompositionTest: public Corrade::TestSuite::Tester { +class CompositionTest: public TestSuite::Tester { public: CompositionTest(); diff --git a/src/Shapes/Test/LineTest.cpp b/src/Shapes/Test/LineTest.cpp index bf97fbc5d..bb8ce701d 100644 --- a/src/Shapes/Test/LineTest.cpp +++ b/src/Shapes/Test/LineTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class LineTest: public Corrade::TestSuite::Tester { +class LineTest: public TestSuite::Tester { public: LineTest(); diff --git a/src/Shapes/Test/PlaneTest.cpp b/src/Shapes/Test/PlaneTest.cpp index 66c2b5649..c86a6386b 100644 --- a/src/Shapes/Test/PlaneTest.cpp +++ b/src/Shapes/Test/PlaneTest.cpp @@ -31,7 +31,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class PlaneTest: public Corrade::TestSuite::Tester { +class PlaneTest: public TestSuite::Tester { public: PlaneTest(); diff --git a/src/Shapes/Test/PointTest.cpp b/src/Shapes/Test/PointTest.cpp index c10641284..38d344edc 100644 --- a/src/Shapes/Test/PointTest.cpp +++ b/src/Shapes/Test/PointTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class PointTest: public Corrade::TestSuite::Tester { +class PointTest: public TestSuite::Tester { public: PointTest(); diff --git a/src/Shapes/Test/ShapeImplementationTest.cpp b/src/Shapes/Test/ShapeImplementationTest.cpp index 0aa2c21f7..eced1884a 100644 --- a/src/Shapes/Test/ShapeImplementationTest.cpp +++ b/src/Shapes/Test/ShapeImplementationTest.cpp @@ -29,7 +29,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class ShapeImplementationTest: public Corrade::TestSuite::Tester { +class ShapeImplementationTest: public TestSuite::Tester { public: ShapeImplementationTest(); diff --git a/src/Shapes/Test/ShapeTest.cpp b/src/Shapes/Test/ShapeTest.cpp index bfd9a58f6..3515a2739 100644 --- a/src/Shapes/Test/ShapeTest.cpp +++ b/src/Shapes/Test/ShapeTest.cpp @@ -35,7 +35,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class ShapeTest: public Corrade::TestSuite::Tester { +class ShapeTest: public TestSuite::Tester { public: ShapeTest(); diff --git a/src/Shapes/Test/SphereTest.cpp b/src/Shapes/Test/SphereTest.cpp index a7dca7036..70f413be5 100644 --- a/src/Shapes/Test/SphereTest.cpp +++ b/src/Shapes/Test/SphereTest.cpp @@ -32,7 +32,7 @@ namespace Magnum { namespace Shapes { namespace Test { -class SphereTest: public Corrade::TestSuite::Tester { +class SphereTest: public TestSuite::Tester { public: SphereTest(); diff --git a/src/Test/AbstractImageTest.cpp b/src/Test/AbstractImageTest.cpp index 2675ad658..73b2b7239 100644 --- a/src/Test/AbstractImageTest.cpp +++ b/src/Test/AbstractImageTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Test { -class AbstractImageTest: public Corrade::TestSuite::Tester { +class AbstractImageTest: public TestSuite::Tester { public: explicit AbstractImageTest(); diff --git a/src/Test/AbstractShaderProgramTest.cpp b/src/Test/AbstractShaderProgramTest.cpp index 05838f101..20d77a1dd 100644 --- a/src/Test/AbstractShaderProgramTest.cpp +++ b/src/Test/AbstractShaderProgramTest.cpp @@ -28,7 +28,7 @@ namespace Magnum { namespace Test { -class AbstractShaderProgramTest: public Corrade::TestSuite::Tester { +class AbstractShaderProgramTest: public TestSuite::Tester { public: explicit AbstractShaderProgramTest(); diff --git a/src/Test/ArrayTest.cpp b/src/Test/ArrayTest.cpp index dcf4de7bd..cff946fbf 100644 --- a/src/Test/ArrayTest.cpp +++ b/src/Test/ArrayTest.cpp @@ -28,7 +28,7 @@ namespace Magnum { namespace Test { -class ArrayTest: public Corrade::TestSuite::Tester { +class ArrayTest: public TestSuite::Tester { public: ArrayTest(); diff --git a/src/Test/ColorTest.cpp b/src/Test/ColorTest.cpp index 773913454..52b815f65 100644 --- a/src/Test/ColorTest.cpp +++ b/src/Test/ColorTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Test { -class ColorTest: public Corrade::TestSuite::Tester { +class ColorTest: public TestSuite::Tester { public: ColorTest(); @@ -178,7 +178,7 @@ void ColorTest::debug() { } void ColorTest::configuration() { - Corrade::Utility::Configuration c; + Utility::Configuration c; Color3f color3(0.5f, 0.75f, 1.0f); std::string value3("0.5 0.75 1"); diff --git a/src/Test/MeshTest.cpp b/src/Test/MeshTest.cpp index 10c91fcc8..7b382c3e4 100644 --- a/src/Test/MeshTest.cpp +++ b/src/Test/MeshTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Test { -class MeshTest: public Corrade::TestSuite::Tester { +class MeshTest: public TestSuite::Tester { public: MeshTest(); @@ -60,7 +60,7 @@ void MeshTest::debugIndexType() { } void MeshTest::configurationPrimitive() { - Corrade::Utility::Configuration c; + Utility::Configuration c; c.setValue("primitive", Mesh::Primitive::LineStrip); CORRADE_COMPARE(c.value("primitive"), "LineStrip"); @@ -68,7 +68,7 @@ void MeshTest::configurationPrimitive() { } void MeshTest::configurationIndexType() { - Corrade::Utility::Configuration c; + Utility::Configuration c; c.setValue("type", Mesh::IndexType::UnsignedByte); CORRADE_COMPARE(c.value("type"), "UnsignedByte"); diff --git a/src/Test/ResourceManagerTest.cpp b/src/Test/ResourceManagerTest.cpp index 0b964d68a..46176d91a 100644 --- a/src/Test/ResourceManagerTest.cpp +++ b/src/Test/ResourceManagerTest.cpp @@ -32,7 +32,7 @@ namespace Magnum { namespace Test { -class ResourceManagerTest: public Corrade::TestSuite::Tester { +class ResourceManagerTest: public TestSuite::Tester { public: ResourceManagerTest(); diff --git a/src/Test/SwizzleTest.cpp b/src/Test/SwizzleTest.cpp index a7c18d453..a128b3555 100644 --- a/src/Test/SwizzleTest.cpp +++ b/src/Test/SwizzleTest.cpp @@ -28,7 +28,7 @@ namespace Magnum { namespace Test { -class SwizzleTest: public Corrade::TestSuite::Tester { +class SwizzleTest: public TestSuite::Tester { public: SwizzleTest(); diff --git a/src/Text/AbstractFont.cpp b/src/Text/AbstractFont.cpp index 36d6eec5f..58a90cf2b 100644 --- a/src/Text/AbstractFont.cpp +++ b/src/Text/AbstractFont.cpp @@ -28,7 +28,7 @@ namespace Magnum { namespace Text { AbstractFont::AbstractFont(): _size(0.0f) {} -AbstractFont::AbstractFont(Corrade::PluginManager::AbstractManager* manager, std::string plugin): AbstractPlugin(manager, std::move(plugin)), _size(0.0f) {} +AbstractFont::AbstractFont(PluginManager::AbstractManager* manager, std::string plugin): AbstractPlugin(manager, std::move(plugin)), _size(0.0f) {} AbstractLayouter::AbstractLayouter(): _glyphCount(0) {} diff --git a/src/Text/AbstractFont.h b/src/Text/AbstractFont.h index 66ad7cc4f..f2153849c 100644 --- a/src/Text/AbstractFont.h +++ b/src/Text/AbstractFont.h @@ -52,7 +52,7 @@ information. See TextRenderer for information about text rendering. Plugin implements functions open(), close(), createGlyphCache() and layout(). */ -class MAGNUM_TEXT_EXPORT AbstractFont: public Corrade::PluginManager::AbstractPlugin { +class MAGNUM_TEXT_EXPORT AbstractFont: public PluginManager::AbstractPlugin { PLUGIN_INTERFACE("cz.mosra.magnum.Text.AbstractFont/0.1") public: @@ -60,7 +60,7 @@ class MAGNUM_TEXT_EXPORT AbstractFont: public Corrade::PluginManager::AbstractPl explicit AbstractFont(); /** @brief Plugin manager constructor */ - explicit AbstractFont(Corrade::PluginManager::AbstractManager* manager, std::string plugin); + explicit AbstractFont(PluginManager::AbstractManager* manager, std::string plugin); /** * @brief Open font from file diff --git a/src/TextureTools/DistanceField.cpp b/src/TextureTools/DistanceField.cpp index ca9765007..ce031322d 100644 --- a/src/TextureTools/DistanceField.cpp +++ b/src/TextureTools/DistanceField.cpp @@ -68,7 +68,7 @@ DistanceFieldShader::DistanceFieldShader() { /** @todo compatibility! */ - Corrade::Utility::Resource rs("MagnumTextureTools"); + Utility::Resource rs("MagnumTextureTools"); Shader vert(Version::GL330, Shader::Type::Vertex); vert.addSource(rs.get("DistanceFieldShader.vert")); diff --git a/src/TextureTools/Test/AtlasTest.cpp b/src/TextureTools/Test/AtlasTest.cpp index aa653ad28..4bbb21ddd 100644 --- a/src/TextureTools/Test/AtlasTest.cpp +++ b/src/TextureTools/Test/AtlasTest.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace TextureTools { namespace Test { -class AtlasTest: public Corrade::TestSuite::Tester { +class AtlasTest: public TestSuite::Tester { public: explicit AtlasTest(); diff --git a/src/Timeline.cpp b/src/Timeline.cpp index 2df6f5e74..94cecc19f 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -27,6 +27,8 @@ #include #include +#include "Magnum.h" + using namespace std::chrono; namespace Magnum { @@ -53,7 +55,7 @@ void Timeline::nextFrame() { _previousFrameDuration = duration/1e6f; if(_previousFrameDuration < _minimalFrameTime) { - Corrade::Utility::sleep(_minimalFrameTime*1000 - duration/1000); + Utility::sleep(_minimalFrameTime*1000 - duration/1000); now = high_resolution_clock::now(); _previousFrameDuration = duration_cast(now-_previousFrameTime).count()/1e6f; } diff --git a/src/Trade/AbstractImageConverter.cpp b/src/Trade/AbstractImageConverter.cpp index 4ccef856f..ec548d374 100644 --- a/src/Trade/AbstractImageConverter.cpp +++ b/src/Trade/AbstractImageConverter.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Trade { AbstractImageConverter::AbstractImageConverter() = default; -AbstractImageConverter::AbstractImageConverter(Corrade::PluginManager::AbstractManager* manager, std::string plugin): AbstractPlugin(manager, std::move(plugin)) {} +AbstractImageConverter::AbstractImageConverter(PluginManager::AbstractManager* manager, std::string plugin): AbstractPlugin(manager, std::move(plugin)) {} Image2D* AbstractImageConverter::convertToImage(const Image2D* const) const { CORRADE_ASSERT(features() & Feature::ConvertToImage, diff --git a/src/Trade/AbstractImageConverter.h b/src/Trade/AbstractImageConverter.h index 03fcaaa85..643abd4b8 100644 --- a/src/Trade/AbstractImageConverter.h +++ b/src/Trade/AbstractImageConverter.h @@ -48,7 +48,7 @@ Plugin implements function features() and one or more of convertToImage(), convertToData() or convertToFile() functions based on what features are supported. */ -class MAGNUM_EXPORT AbstractImageConverter: public Corrade::PluginManager::AbstractPlugin { +class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractPlugin { PLUGIN_INTERFACE("cz.mosra.magnum.Trade.AbstractImageConverter/0.1") public: @@ -73,13 +73,13 @@ class MAGNUM_EXPORT AbstractImageConverter: public Corrade::PluginManager::Abstr * * @see features() */ - typedef Corrade::Containers::EnumSet Features; + typedef Containers::EnumSet Features; /** @brief Default constructor */ explicit AbstractImageConverter(); /** @brief Plugin manager constructor */ - explicit AbstractImageConverter(Corrade::PluginManager::AbstractManager* manager, std::string plugin); + explicit AbstractImageConverter(PluginManager::AbstractManager* manager, std::string plugin); /** @brief Features supported by this converter */ virtual Features features() const = 0; diff --git a/src/Trade/AbstractImporter.cpp b/src/Trade/AbstractImporter.cpp index 9ecaaf31f..f0319dd51 100644 --- a/src/Trade/AbstractImporter.cpp +++ b/src/Trade/AbstractImporter.cpp @@ -30,7 +30,7 @@ namespace Magnum { namespace Trade { AbstractImporter::AbstractImporter() = default; -AbstractImporter::AbstractImporter(Corrade::PluginManager::AbstractManager* manager, std::string plugin): AbstractPlugin(manager, std::move(plugin)) {} +AbstractImporter::AbstractImporter(PluginManager::AbstractManager* manager, std::string plugin): AbstractPlugin(manager, std::move(plugin)) {} bool AbstractImporter::openData(const void* const, const std::size_t) { CORRADE_ASSERT(features() & Feature::OpenData, diff --git a/src/Trade/AbstractImporter.h b/src/Trade/AbstractImporter.h index 08b3a9063..35a79e361 100644 --- a/src/Trade/AbstractImporter.h +++ b/src/Trade/AbstractImporter.h @@ -31,9 +31,9 @@ #include #include -#include "Trade/Trade.h" - +#include "Magnum.h" #include "magnumVisibility.h" +#include "Trade/Trade.h" namespace Magnum { namespace Trade { @@ -53,7 +53,7 @@ be done in data parsing functions, because the user might want to import only some data. This is obviously not the case for single-data formats like images, as the file contains all data user wants to import. */ -class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::AbstractPlugin { +class MAGNUM_EXPORT AbstractImporter: public PluginManager::AbstractPlugin { PLUGIN_INTERFACE("cz.mosra.magnum.Trade.AbstractImporter/0.2.1") public: @@ -68,13 +68,13 @@ class MAGNUM_EXPORT AbstractImporter: public Corrade::PluginManager::AbstractPlu }; /** @brief Set of features supported by this importer */ - typedef Corrade::Containers::EnumSet Features; + typedef Containers::EnumSet Features; /** @brief Default constructor */ explicit AbstractImporter(); /** @brief Plugin manager constructor */ - explicit AbstractImporter(Corrade::PluginManager::AbstractManager* manager, std::string plugin); + explicit AbstractImporter(PluginManager::AbstractManager* manager, std::string plugin); /** @brief Features supported by this importer */ virtual Features features() const = 0; diff --git a/src/Trade/Test/ObjectData2DTest.cpp b/src/Trade/Test/ObjectData2DTest.cpp index 75c377943..4161386b4 100644 --- a/src/Trade/Test/ObjectData2DTest.cpp +++ b/src/Trade/Test/ObjectData2DTest.cpp @@ -29,7 +29,7 @@ namespace Magnum { namespace Trade { namespace Test { -class ObjectData2DTest: public Corrade::TestSuite::Tester { +class ObjectData2DTest: public TestSuite::Tester { public: explicit ObjectData2DTest(); diff --git a/src/Trade/Test/ObjectData3DTest.cpp b/src/Trade/Test/ObjectData3DTest.cpp index f723262c5..8cb6d1332 100644 --- a/src/Trade/Test/ObjectData3DTest.cpp +++ b/src/Trade/Test/ObjectData3DTest.cpp @@ -29,7 +29,7 @@ namespace Magnum { namespace Trade { namespace Test { -class ObjectData3DTest: public Corrade::TestSuite::Tester { +class ObjectData3DTest: public TestSuite::Tester { public: explicit ObjectData3DTest();