Browse Source

DebugTools: doc++, minor cleanup.

pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
9e0b24fa5b
  1. 3
      src/Magnum/DebugTools/CompareImage.cpp
  2. 2
      src/Magnum/DebugTools/CompareImage.h
  3. 4
      src/Magnum/DebugTools/Test/CompareImageTest.cpp

3
src/Magnum/DebugTools/CompareImage.cpp

@ -186,7 +186,8 @@ void printDeltaImage(Debug& out, Containers::ArrayView<const Float> deltas, cons
out << " |";
for(std::int_fast32_t x = 0; x != blockCount.x(); ++x) {
/* Going bottom-up so we don't flip the image upside down when printing */
/* Going bottom-up so we don't flip the image upside down when
printing */
const Vector2i offset = Vector2i{Int(x), blockCount.y() - Int(y) - 1}*pixelsPerBlock;
const Vector2i blockSize = Math::min(size - offset, Vector2i{pixelsPerBlock});

2
src/Magnum/DebugTools/CompareImage.h

@ -151,7 +151,7 @@ namespace Magnum { namespace DebugTools {
To be used with @ref Corrade::TestSuite.
@note This class is available only if Magnum is compiled with `WITH_TRADE`
@note This class is available only if Magnum is compiled with `WITH_DEBUGTOOLS`
enabled (done by default). See @ref building-features for more information.
Basic use is really simple:

4
src/Magnum/DebugTools/Test/CompareImageTest.cpp

@ -177,8 +177,8 @@ CompareImageTest::CompareImageTest() {
}
const Float ActualRedData[] = {
0.3f, 1.0f, 0.9f,
0.9f, 0.6f, 0.2f,
0.3f, 1.0f, 0.9f,
0.9f, 0.6f, 0.2f,
-0.1f, 1.0f, 0.0f
};

Loading…
Cancel
Save