summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2020-04-10 11:32:53 +0200
committerPaul Lemire <paul.lemire@kdab.com>2020-04-14 08:21:59 +0200
commit0048bc4ab2b0e621428c1bd32e78c3adbce30a8a (patch)
tree50dc8bcacb7a46da70f1b96f22aadb2c4cd89572 /tests/manual
parente65597c1dcd95e1aba2b9e40d15c27621c9884b4 (diff)
bigscene-cpp: add debug overlay
Change-Id: Ie5c5bc56e194a2d31bc7217d023c9d94c3c92748 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/bigscene-cpp/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/manual/bigscene-cpp/main.cpp b/tests/manual/bigscene-cpp/main.cpp
index 57e853c47..45a35f91b 100644
--- a/tests/manual/bigscene-cpp/main.cpp
+++ b/tests/manual/bigscene-cpp/main.cpp
@@ -73,6 +73,7 @@
#include <Qt3DRender/QCameraSelector>
#include <Qt3DRender/QViewport>
#include <Qt3DRender/QNoDraw>
+#include <Qt3DRender/QDebugOverlay>
using namespace Qt3DCore;
using namespace Qt3DRender;
@@ -116,6 +117,8 @@ int main(int ac, char **av)
viewport->setNormalizedRect(vp);
}
+ new QDebugOverlay(qobject_cast<Qt3DCore::QNode *>(cameraSelector->children().last()));
+
view.setActiveFrameGraph(surfaceSelector);
}