diff options
author | Antti Määttä <antti.maatta@qt.io> | 2017-02-06 11:01:06 +0200 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2017-02-07 09:03:12 +0000 |
commit | c0df6af32e80a09a8bf72bd6c9cc28270613220b (patch) | |
tree | a196bce7410ddd934a8327506eed6fdc5d8f1ca4 /tests/manual/mesh-morphing/main.cpp | |
parent | 1150383da5f55b44d6101f086cca310fa94db6a5 (diff) |
Move animations from extras to animations
Change-Id: If3bcfe24ebe7ecfb4519e0e400e601819783edad
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests/manual/mesh-morphing/main.cpp')
-rw-r--r-- | tests/manual/mesh-morphing/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/manual/mesh-morphing/main.cpp b/tests/manual/mesh-morphing/main.cpp index 4ae791181..641722a4c 100644 --- a/tests/manual/mesh-morphing/main.cpp +++ b/tests/manual/mesh-morphing/main.cpp @@ -43,8 +43,8 @@ #include <Qt3DExtras/qcylindermesh.h> #include <Qt3DExtras/QPhongMaterial> #include <Qt3DExtras/QMorphPhongMaterial> -#include <Qt3DExtras/QVertexBlendAnimation> -#include <Qt3DExtras/QMorphTarget> +#include <Qt3DAnimation/QVertexBlendAnimation> +#include <Qt3DAnimation/QMorphTarget> #include <Qt3DExtras/QCylinderGeometry> #include <Qt3DCore/qentity.h> @@ -111,13 +111,13 @@ int main(int argc, char **argv) attributes.push_back(Qt3DRender::QAttribute::defaultPositionAttributeName()); attributes.push_back(Qt3DRender::QAttribute::defaultNormalAttributeName()); - QVector<Qt3DExtras::QMorphTarget*> morphTargets; - morphTargets.push_back(Qt3DExtras::QMorphTarget::fromGeometry(cylinder1, attributes)); - morphTargets.push_back(Qt3DExtras::QMorphTarget::fromGeometry(cylinder2, attributes)); - morphTargets.push_back(Qt3DExtras::QMorphTarget::fromGeometry(cylinder3, attributes)); + QVector<Qt3DAnimation::QMorphTarget*> morphTargets; + morphTargets.push_back(Qt3DAnimation::QMorphTarget::fromGeometry(cylinder1, attributes)); + morphTargets.push_back(Qt3DAnimation::QMorphTarget::fromGeometry(cylinder2, attributes)); + morphTargets.push_back(Qt3DAnimation::QMorphTarget::fromGeometry(cylinder3, attributes)); morphTargets.push_back(morphTargets.first()); - Qt3DExtras::QVertexBlendAnimation *animation = new Qt3DExtras::QVertexBlendAnimation; + Qt3DAnimation::QVertexBlendAnimation *animation = new Qt3DAnimation::QVertexBlendAnimation; QVector<float> times; times.push_back(0.0f); times.push_back(5.0f); @@ -132,7 +132,7 @@ int main(int argc, char **argv) Qt3DExtras::QMorphPhongMaterial *material = new Qt3DExtras::QMorphPhongMaterial(rootEntity); material->setDiffuse(Qt::red); - QObject::connect(animation, &Qt3DExtras::QVertexBlendAnimation::interpolatorChanged, + QObject::connect(animation, &Qt3DAnimation::QVertexBlendAnimation::interpolatorChanged, material, &Qt3DExtras::QMorphPhongMaterial::setInterpolator); // Cylinder |