summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simple-cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2015-08-31 15:14:17 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-10-13 07:15:15 +0000
commitaf40840eedf35404ba4b39e890c158e2328ff6ec (patch)
treece4ac1f925c34b56704c99bd332e0436e68dbecc /examples/qt3d/simple-cpp
parent0269afd106da5d4d999585b3bdb1332a2c01af12 (diff)
Move Render aspect into the Qt3DRender namespace
Updated examples and tests accordingly. Change-Id: I8848a88472de2302aa072fa11f21ea934672b7e6 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/simple-cpp')
-rw-r--r--examples/qt3d/simple-cpp/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qt3d/simple-cpp/main.cpp b/examples/qt3d/simple-cpp/main.cpp
index 2755b37cc..67d4fcbda 100644
--- a/examples/qt3d/simple-cpp/main.cpp
+++ b/examples/qt3d/simple-cpp/main.cpp
@@ -63,7 +63,7 @@
int main(int argc, char* argv[])
{
QGuiApplication app(argc, argv);
- Qt3D::QWindow view;
+ Qt3DRender::QWindow view;
Qt3DInput::QInputAspect *input = new Qt3DInput::QInputAspect;
view.registerAspect(input);
@@ -80,11 +80,11 @@ int main(int argc, char* argv[])
input->setCamera(cameraEntity);
// Material
- Qt3D::QMaterial *material = new Qt3D::QPhongMaterial(rootEntity);
+ Qt3DRender::QMaterial *material = new Qt3DRender::QPhongMaterial(rootEntity);
// Torus
Qt3D::QEntity *torusEntity = new Qt3D::QEntity(rootEntity);
- Qt3D::QTorusMesh *torusMesh = new Qt3D::QTorusMesh;
+ Qt3DRender::QTorusMesh *torusMesh = new Qt3DRender::QTorusMesh;
torusMesh->setRadius(5);
torusMesh->setMinorRadius(1);
torusMesh->setRings(100);
@@ -108,7 +108,7 @@ int main(int argc, char* argv[])
// Sphere
Qt3D::QEntity *sphereEntity = new Qt3D::QEntity(rootEntity);
- Qt3D::QSphereMesh *sphereMesh = new Qt3D::QSphereMesh;
+ Qt3DRender::QSphereMesh *sphereMesh = new Qt3DRender::QSphereMesh;
sphereMesh->setRadius(3);
Qt3D::QTransform *sphereTransform = new Qt3D::QTransform;