summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-08-10 03:00:30 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-08-10 03:00:30 +0200
commit4f9b3b41fdc276bb9ec5880a901dd2e6babdb438 (patch)
tree73920bc38ede98af5c620e0df6d37e297b7e55f4 /src/render/framegraph
parent9fab345f26ddf8574cdf3c967609c01ff00d512c (diff)
parente1f988f4363bcd69f1d0d47cef82503938c5638b (diff)
Merge remote-tracking branch 'origin/5.13' into dev
Diffstat (limited to 'src/render/framegraph')
-rw-r--r--src/render/framegraph/qsortpolicy.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/render/framegraph/qsortpolicy.cpp b/src/render/framegraph/qsortpolicy.cpp
index 979d6e1f0..6f852afbd 100644
--- a/src/render/framegraph/qsortpolicy.cpp
+++ b/src/render/framegraph/qsortpolicy.cpp
@@ -64,7 +64,7 @@ QSortPolicyPrivate::QSortPolicyPrivate()
A Qt3DRender::QSortPolicy class stores the sorting type used by the FrameGraph.
The sort types determine how drawable entities are sorted before drawing to
determine the drawing order. When QSortPolicy is present in the FrameGraph,
- the sorting mechanism is determined by the SortTypes list. Multiple sort types
+ the sorting mechanism is determined by the sortTypes list. Multiple sort types
can be used simultaneously. If QSortPolicy is not present in the FrameGraph,
entities are drawn in the order they appear in the entity hierarchy.
*/
@@ -80,7 +80,7 @@ QSortPolicyPrivate::QSortPolicyPrivate()
A SortPolicy class stores the sorting type used by the FrameGraph.
The sort types determine how drawable entities are sorted before drawing to
determine the drawing order. When SortPolicy is present in the FrameGraph,
- the sorting mechanism is determined by the SortTypes list. Multiple sort
+ the sorting mechanism is determined by the sortTypes list. Multiple sort
types can be used simultaneously. If SortPolicy is not present in the FrameGraph,
entities are drawn in the order they appear in the entity hierarchy.
*/
@@ -110,8 +110,21 @@ QSortPolicyPrivate::QSortPolicyPrivate()
*/
/*!
- \qmlproperty QVariantList SortPolicy::sortTypes
+ \qmlproperty list<int> SortPolicy::sortTypes
Specifies the sorting types to be used.
+
+ This list can include the following values:
+ \list
+ \li StateChangeCost - sort the objects so as to minimize the cost of
+ changing from the currently rendered state
+ \li BackToFront - sort the objects from back to front based on inverted z
+ order. More accurately, the sorting key is the z component of the
+ projection of the camera-to-object-center vector onto the camera's view
+ vector.
+ \li Material - sort the objects based on their material value
+ \li FrontToBack - sort the objects from front to back. The opposite of
+ BackToFront.
+ \endlist
*/
/*!