diff --git a/doc/matrix-vector.dox b/doc/matrix-vector.dox index 595cc43bc..3b2739cb7 100644 --- a/doc/matrix-vector.dox +++ b/doc/matrix-vector.dox @@ -77,8 +77,8 @@ Vector3i b; // zero-filled Matrix3 identity; // diagonal set to 1 Matrix3 zero(Matrix::Zero); // zero-filled -Color4 black1; // {0.0f, 0.0f, 0.0f, 1.0f} -BasicColor4 black2; // {0, 0, 0, 255} +Color4 black1; // {0.0f, 0.0f, 0.0f, 1.0f} +Color4ub black2; // {0, 0, 0, 255} @endcode Most common and most efficient way to create vector is to pass all values to @@ -193,8 +193,8 @@ In %Magnum all mulitplication/division operations involving integral vectors will have integral result, you need to convert both arguments to the same floating-point type to have floating-point result. @code -BasicColor3 color(80, 116, 34); -BasicColor3 lighter = color*1.5f; // lighter = {120, 174, 51} +Color3ub color(80, 116, 34); +Color3ub lighter = color*1.5f; // lighter = {120, 174, 51} Vector3i a(4, 18, -90); Vector3 multiplier(2.2f, 0.25f, 0.1f); diff --git a/src/Magnum/MeshTools/Interleave.h b/src/Magnum/MeshTools/Interleave.h index 69879f1f6..8b572c7eb 100644 --- a/src/Magnum/MeshTools/Interleave.h +++ b/src/Magnum/MeshTools/Interleave.h @@ -155,8 +155,8 @@ It's often desirable to align data for one vertex on 32bit boundaries. To achieve that, you can specify gaps between the attributes: @code std::vector positions; -std::vector weights; -std::vector> vertexColors; +std::vector weights; +std::vector vertexColors; std::size_t attributeCount; std::size_t stride; Containers::Array data; diff --git a/src/Magnum/Test/ColorTest.cpp b/src/Magnum/Test/ColorTest.cpp index fdf75ea8e..933602990 100644 --- a/src/Magnum/Test/ColorTest.cpp +++ b/src/Magnum/Test/ColorTest.cpp @@ -289,19 +289,19 @@ void ColorTest::hsvAlpha() { void ColorTest::swizzleType() { constexpr Color3 origColor3; - constexpr BasicColor4 origColor4; + constexpr Color4ub origColor4; constexpr auto a = Math::swizzle<'y', 'z', 'r'>(origColor3); CORRADE_VERIFY((std::is_same::value)); constexpr auto b = Math::swizzle<'y', 'z', 'a'>(origColor4); - CORRADE_VERIFY((std::is_same>::value)); + CORRADE_VERIFY((std::is_same::value)); constexpr auto c = Math::swizzle<'y', 'z', 'y', 'x'>(origColor3); CORRADE_VERIFY((std::is_same::value)); constexpr auto d = Math::swizzle<'y', 'a', 'y', 'x'>(origColor4); - CORRADE_VERIFY((std::is_same>::value)); + CORRADE_VERIFY((std::is_same::value)); } void ColorTest::debug() {