summaryrefslogtreecommitdiff
path: root/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2022-11-14 13:34:12 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2022-11-15 12:33:11 +0100
commit76d775dce392ff6059c32999549dbe381d79b99e (patch)
tree81c88a73f0f96b7d37aadc2b5d4ce78a317d39f0 /src/location/quickmapitems/qdeclarativepolylinemapitem_p.h
parent76c0afd59040b158379c2b9fe116a8fead82f308 (diff)
downloadqtlocation-76d775dce392ff6059c32999549dbe381d79b99e.tar.gz
Simplify by removing the LineStrip mode for MapPolyline
Have two modes (Software, OpenGL) for polyline, as it is the case for all other items (rectangle, circle, polygon). OpenGLLineStrip is removed completely, whereas the enum value OpenGL is added with the same value as OpenGLExtruded for symmetry with other items. Drawing lines and expecting wide line (width > 1) support to be avilable is highly non-portable: Direct 3D, Metal, and core profile OpenGL contexts will not support widths other than 1, whereas with Vulkan wide lines are an optional feature so it may or may not work. As the 'backend' property is already marked as internal, it won't present any consequences when it comes to the public API. Internally this requires some untangling of the somewhat intertwined node and material implementations. Change-Id: I175ddb5f84128ed4d0fcf2939272e631566ff327 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/location/quickmapitems/qdeclarativepolylinemapitem_p.h')
-rw-r--r--src/location/quickmapitems/qdeclarativepolylinemapitem_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h b/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h
index e5446d7b..b4218557 100644
--- a/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h
+++ b/src/location/quickmapitems/qdeclarativepolylinemapitem_p.h
@@ -105,8 +105,9 @@ class Q_LOCATION_PRIVATE_EXPORT QDeclarativePolylineMapItem : public QDeclarativ
public:
enum Backend {
Software = 0,
- OpenGLLineStrip = 1,
- OpenGLExtruded = 2,
+ OpenGLLineStrip = 1, // unused
+ OpenGLExtruded = 2, // legacy name, use OpenGL instead
+ OpenGL = OpenGLExtruded
};
explicit QDeclarativePolylineMapItem(QQuickItem *parent = nullptr);
@@ -165,8 +166,7 @@ public:
friend class QDeclarativePolylineMapItemPrivate;
friend class QDeclarativePolylineMapItemPrivateCPU;
- friend class QDeclarativePolylineMapItemPrivateOpenGLLineStrip;
- friend class QDeclarativePolylineMapItemPrivateOpenGLExtruded;
+ friend class QDeclarativePolylineMapItemPrivateOpenGL;
};
QT_END_NAMESPACE