|
|
|
@ -37,6 +37,8 @@ struct MeshVisualizerTest: TestSuite::Tester { |
|
|
|
void constructNoCreate(); |
|
|
|
void constructNoCreate(); |
|
|
|
void constructCopy(); |
|
|
|
void constructCopy(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void vertexIndexNoConflict(); |
|
|
|
|
|
|
|
|
|
|
|
void debugFlag(); |
|
|
|
void debugFlag(); |
|
|
|
void debugFlags(); |
|
|
|
void debugFlags(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
@ -45,6 +47,8 @@ MeshVisualizerTest::MeshVisualizerTest() { |
|
|
|
addTests({&MeshVisualizerTest::constructNoCreate, |
|
|
|
addTests({&MeshVisualizerTest::constructNoCreate, |
|
|
|
&MeshVisualizerTest::constructCopy, |
|
|
|
&MeshVisualizerTest::constructCopy, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&MeshVisualizerTest::vertexIndexNoConflict, |
|
|
|
|
|
|
|
|
|
|
|
&MeshVisualizerTest::debugFlag, |
|
|
|
&MeshVisualizerTest::debugFlag, |
|
|
|
&MeshVisualizerTest::debugFlags}); |
|
|
|
&MeshVisualizerTest::debugFlags}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -63,6 +67,15 @@ void MeshVisualizerTest::constructCopy() { |
|
|
|
CORRADE_VERIFY(!(std::is_assignable<MeshVisualizer, const MeshVisualizer&>{})); |
|
|
|
CORRADE_VERIFY(!(std::is_assignable<MeshVisualizer, const MeshVisualizer&>{})); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MeshVisualizerTest::vertexIndexNoConflict() { |
|
|
|
|
|
|
|
CORRADE_VERIFY(MeshVisualizer::VertexIndex::Location != Generic3D::Position::Location); |
|
|
|
|
|
|
|
CORRADE_VERIFY(MeshVisualizer::VertexIndex::Location != Generic3D::Normal::Location); |
|
|
|
|
|
|
|
CORRADE_VERIFY(MeshVisualizer::VertexIndex::Location != Generic3D::TextureCoordinates::Location); |
|
|
|
|
|
|
|
CORRADE_VERIFY(MeshVisualizer::VertexIndex::Location != Generic3D::Color3::Location); |
|
|
|
|
|
|
|
CORRADE_VERIFY(MeshVisualizer::VertexIndex::Location != Generic3D::Color4::Location); |
|
|
|
|
|
|
|
CORRADE_VERIFY(MeshVisualizer::VertexIndex::Location != Generic3D::Tangent::Location); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MeshVisualizerTest::debugFlag() { |
|
|
|
void MeshVisualizerTest::debugFlag() { |
|
|
|
std::ostringstream out; |
|
|
|
std::ostringstream out; |
|
|
|
|
|
|
|
|
|
|
|
|