diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-10-12 20:45:19 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2015-10-13 13:19:50 +0000 |
commit | 7c971e0e7791ab38d7d3d8ebc25468c44cbe49c5 (patch) | |
tree | 53197a9e5eb7501d6f5b497f70c25dad9c265a6f /examples/qt3d/cpp_example | |
parent | 0bfd20ad3b8eb3edec8d6317af9eb5504f8c0871 (diff) |
Move Qt3DCore into Qt3DCore namespace
Update other aspects, tests and examples accordingly.
Change-Id: Ib1bcf0bdf4f5aec4422dc0c80bfc32b27fb1a317
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/cpp_example')
-rw-r--r-- | examples/qt3d/cpp_example/main.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/qt3d/cpp_example/main.cpp b/examples/qt3d/cpp_example/main.cpp index cb2127b14..7d2bbeb78 100644 --- a/examples/qt3d/cpp_example/main.cpp +++ b/examples/qt3d/cpp_example/main.cpp @@ -72,7 +72,7 @@ int main(int ac, char **av) QGuiApplication app(ac, av); Window view; - Qt3D::QAspectEngine engine; + Qt3DCore::QAspectEngine engine; engine.registerAspect(new Qt3DRender::QRenderAspect()); Qt3DInput::QInputAspect *input = new Qt3DInput::QInputAspect; engine.registerAspect(input); @@ -83,10 +83,10 @@ int main(int ac, char **av) engine.setData(data); // Root entity - Qt3D::QEntity *rootEntity = new Qt3D::QEntity(); + Qt3DCore::QEntity *rootEntity = new Qt3DCore::QEntity(); rootEntity->setObjectName(QStringLiteral("rootEntity")); // Torus - Qt3D::QEntity *torusEntity = new Qt3D::QEntity(rootEntity); + Qt3DCore::QEntity *torusEntity = new Qt3DCore::QEntity(rootEntity); // Torus shape data Qt3DRender::QTorusMesh *torus = new Qt3DRender::QTorusMesh(); @@ -96,9 +96,9 @@ int main(int ac, char **av) torusEntity->addComponent(torus); // TorusMesh Transform - Qt3D::QTranslateTransform *torusTranslation = new Qt3D::QTranslateTransform(); - Qt3D::QRotateTransform *torusRotation = new Qt3D::QRotateTransform(); - Qt3D::QTransform *torusTransforms = new Qt3D::QTransform(); + Qt3DCore::QTranslateTransform *torusTranslation = new Qt3DCore::QTranslateTransform(); + Qt3DCore::QRotateTransform *torusRotation = new Qt3DCore::QRotateTransform(); + Qt3DCore::QTransform *torusTransforms = new Qt3DCore::QTransform(); torusTranslation->setTranslation(QVector3D(-5.0f, 3.5f, 2.0f)); torusRotation->setAxis(QVector3D(1, 0, 0)); @@ -108,11 +108,11 @@ int main(int ac, char **av) torusEntity->addComponent(torusTransforms); // Scene file - Qt3D::QEntity *sceneEntity = new Qt3D::QEntity(rootEntity); + Qt3DCore::QEntity *sceneEntity = new Qt3DCore::QEntity(rootEntity); Qt3DRender::QSceneLoader *scene = new Qt3DRender::QSceneLoader(); scene->setObjectName(QStringLiteral("scene")); - Qt3D::QTransform *sceneTransform = new Qt3D::QTransform(); - Qt3D::QTranslateTransform *sceneTranslateTransform = new Qt3D::QTranslateTransform(); + Qt3DCore::QTransform *sceneTransform = new Qt3DCore::QTransform(); + Qt3DCore::QTranslateTransform *sceneTranslateTransform = new Qt3DCore::QTranslateTransform(); sceneTranslateTransform->setDx(2.5); sceneTranslateTransform->setDy(0.5); sceneTranslateTransform->setDz(-10); @@ -123,7 +123,7 @@ int main(int ac, char **av) sceneEntity->addComponent(scene); // Camera - Qt3D::QCamera *cameraEntity = new Qt3D::QCamera(rootEntity); + Qt3DCore::QCamera *cameraEntity = new Qt3DCore::QCamera(rootEntity); cameraEntity->setObjectName(QStringLiteral("cameraEntity")); cameraEntity->lens()->setPerspectiveProjection(60.0f, 16.0f/9.0f, 0.1f, 1000.0f); |