summaryrefslogtreecommitdiffstats
path: root/src/runtime/api/q3dspresentation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/api/q3dspresentation.cpp')
-rw-r--r--src/runtime/api/q3dspresentation.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/runtime/api/q3dspresentation.cpp b/src/runtime/api/q3dspresentation.cpp
index 6c502e1..3a8e37e 100644
--- a/src/runtime/api/q3dspresentation.cpp
+++ b/src/runtime/api/q3dspresentation.cpp
@@ -169,6 +169,38 @@ void Q3DSPresentation::setProfilingEnabled(bool enable)
}
/*!
+ \property Q3DSPresentation::dragonRenderAspectEnabled
+
+ When enabled, the new, experimental Qt3D render aspect
+ (codenamed "Dragon") is enabled.
+ This render aspect will replace the original render aspect
+ in a future release.
+ This property will be deprecated once the aspect has been
+ replaced.
+
+ The default value is \c false.
+
+ \note Changing the value after the presentation has been loaded
+ has no effect for the already loaded presentation. Therefore the
+ changing of this property must happen before calling setSource().
+*/
+bool Q3DSPresentation::isDragonRenderAspectEnabled() const
+{
+ Q_D(const Q3DSPresentation);
+ return d->dragonRenderAspectEnabled;
+}
+
+void Q3DSPresentation::setDragonRenderAspectEnabled(bool dragonRenderAspectEnabled)
+{
+ Q_D(Q3DSPresentation);
+ if (d->dragonRenderAspectEnabled == dragonRenderAspectEnabled)
+ return;
+
+ d->dragonRenderAspectEnabled = dragonRenderAspectEnabled;
+ emit dragonRenderAspectEnabledChanged();
+}
+
+/*!
\property Q3DSPresentation::profileUiVisible
When this property is \c{true}, the interactive statistics and profile
@@ -616,6 +648,9 @@ Q3DSPresentationController::SourceFlags Q3DSPresentationPrivate::sourceFlags() c
if (profiling)
flags |= Q3DSPresentationController::Profiling;
+ if (dragonRenderAspectEnabled)
+ flags |= Q3DSPresentationController::AwakenTheDragon;
+
return flags;
}