|
|
|
|
@ -40,6 +40,7 @@ struct MeshTest: TestSuite::Tester {
|
|
|
|
|
explicit MeshTest(); |
|
|
|
|
|
|
|
|
|
void constructNoCreate(); |
|
|
|
|
void constructViewNoCreate(); |
|
|
|
|
|
|
|
|
|
void drawCountNotSet(); |
|
|
|
|
void drawViewCountNotSet(); |
|
|
|
|
@ -62,6 +63,7 @@ struct MeshTest: TestSuite::Tester {
|
|
|
|
|
|
|
|
|
|
MeshTest::MeshTest() { |
|
|
|
|
addTests({&MeshTest::constructNoCreate, |
|
|
|
|
&MeshTest::constructViewNoCreate, |
|
|
|
|
|
|
|
|
|
&MeshTest::drawCountNotSet, |
|
|
|
|
&MeshTest::drawViewCountNotSet, |
|
|
|
|
@ -91,6 +93,16 @@ void MeshTest::constructNoCreate() {
|
|
|
|
|
CORRADE_VERIFY(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void MeshTest::constructViewNoCreate() { |
|
|
|
|
{ |
|
|
|
|
Mesh mesh{NoCreate}; |
|
|
|
|
MeshView view{mesh}; |
|
|
|
|
CORRADE_COMPARE(&view.mesh(), &mesh); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CORRADE_VERIFY(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
namespace { |
|
|
|
|
struct Shader: AbstractShaderProgram { |
|
|
|
|
explicit Shader(NoCreateT): AbstractShaderProgram{NoCreate} {} |
|
|
|
|
|