summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/shared
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-01-09 12:38:27 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-01-13 15:52:58 +0100
commit1f267b7e6def96f8041f29a9b4c7da753c736458 (patch)
treebefa09325f311a2fd6ed71b45d0a7dff387df5cb /tests/manual/rhi/shared
parentfe97af0c9ad58f0f823f3b1942cd9ad383ba85d3 (diff)
rhi: Add render-to-cubemap manual test
What's more, demonstrate two types of rendering to a cubemap: one by one to each face, and by attaching all faces as color attachments in one go. Both are used by Qt Quick 3D in connection with shadows, so this proves that the same is possible to implement with QRhi. Task-number: QTBUG-81261 Change-Id: I5c7077224d7cae0dd6ea02ac30a9e6f9f1f0c229 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/manual/rhi/shared')
-rw-r--r--tests/manual/rhi/shared/examplefw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/manual/rhi/shared/examplefw.h b/tests/manual/rhi/shared/examplefw.h
index dc388274d7..84895cf530 100644
--- a/tests/manual/rhi/shared/examplefw.h
+++ b/tests/manual/rhi/shared/examplefw.h
@@ -148,6 +148,9 @@ protected:
void exposeEvent(QExposeEvent *) override;
bool event(QEvent *) override;
+#ifdef EXAMPLEFW_KEYPRESS_EVENTS
+ void keyPressEvent(QKeyEvent *e) override;
+#endif
bool m_running = false;
bool m_notExposed = false;