diff options
Diffstat (limited to 'tests/manual/dynamicscene-cpp/boxentity.cpp')
-rw-r--r-- | tests/manual/dynamicscene-cpp/boxentity.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/manual/dynamicscene-cpp/boxentity.cpp b/tests/manual/dynamicscene-cpp/boxentity.cpp index a39c9a9dc..56b41c5f0 100644 --- a/tests/manual/dynamicscene-cpp/boxentity.cpp +++ b/tests/manual/dynamicscene-cpp/boxentity.cpp @@ -49,6 +49,7 @@ ****************************************************************************/ #include "boxentity.h" +#include <Qt3DRender/QGeometryRenderer> #include <qmath.h> @@ -66,8 +67,11 @@ BoxEntity::BoxEntity(QNode *parent) m_material->setSpecular(Qt::white); m_material->setShininess(150.0f); + auto renderer = new Qt3DRender::QGeometryRenderer; + renderer->setView(m_mesh); + addComponent(m_transform); - addComponent(m_mesh); + addComponent(renderer); addComponent(m_material); } |