diff options
author | Kaj Grönholm <kaj.gronholm@qt.io> | 2018-09-13 08:14:49 +0300 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-10-24 16:18:24 +0000 |
commit | 3db4c4b180b3afb105f6f531f2f070adf0c2ec64 (patch) | |
tree | 6de4ac16e0f33eb51f5be438754a225f41d1cd90 /tests | |
parent | 5d6a5f0238c31f48c9ffac335783116a40cf6a4e (diff) |
Support stereoscopic rendering
This patch provides stereoscopic rendering support for Qt Studio
qt3d-runtime.
Contains API to switch between stereo modes (mono, top-bottom,
left-right, analyph red-cyan & green-magenta) and to control
eye (camera) separation. Adds menu into Q3DSViewer for these.
Task-number: QT3DS-1023
Change-Id: I3da3d34606a07178978eba83236ca6cb6360e893
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/slides/tst_q3dsslides.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/slides/tst_q3dsslides.cpp b/tests/auto/slides/tst_q3dsslides.cpp index 5863b8e..59d8809 100644 --- a/tests/auto/slides/tst_q3dsslides.cpp +++ b/tests/auto/slides/tst_q3dsslides.cpp @@ -814,11 +814,11 @@ bool tst_Q3DSSlides::isNodeVisible(Q3DSNode *node) return false; auto layerAttached = nodeAttached->layer3DS->attached<Q3DSLayerAttached>(); - Q_ASSERT(layerAttached->opaqueTag || layerAttached->transparentTag); + Q_ASSERT(layerAttached->eyeMono->opaqueTag || layerAttached->eyeMono->transparentTag); const bool visible = (nodeAttached->visibilityTag == Q3DSGraphObjectAttached::Visible); // These should be in sync, or we're in trouble. - Q_ASSERT(visible == (entity->components().contains(layerAttached->opaqueTag) || entity->components().contains(layerAttached->transparentTag))); + Q_ASSERT(visible == (entity->components().contains(layerAttached->eyeMono->opaqueTag) || entity->components().contains(layerAttached->eyeMono->transparentTag))); return visible; } |