diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2019-02-23 00:29:45 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2019-02-25 10:44:43 -0800 |
commit | 26e1c925f251d868d4bff39cd2c32b7839d02f4e (patch) | |
tree | 358df147bd4107d983f97649033c4db250c8a372 /platform/ios/src | |
parent | f66848efaf1efe2ce4088bf56ae7af3a765b9d57 (diff) | |
download | qtlocation-mapboxgl-26e1c925f251d868d4bff39cd2c32b7839d02f4e.tar.gz |
[ios, macos] Expose MGLMapView OpenGL context to OpenGL style layers
Added a property to MGLOpenGLStyleLayer that contains the map view’s underlying OpenGL rendering context.
Diffstat (limited to 'platform/ios/src')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 2 | ||||
-rw-r--r-- | platform/ios/src/MGLMapView_Private.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 752a1a780b..f5b51330a0 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -195,7 +195,7 @@ public: MGLMultiPointDelegate, MGLAnnotationImageDelegate> -@property (nonatomic) EAGLContext *context; +@property (nonatomic, readwrite) EAGLContext *context; @property (nonatomic) GLKView *glView; @property (nonatomic) UIImageView *glSnapshotView; diff --git a/platform/ios/src/MGLMapView_Private.h b/platform/ios/src/MGLMapView_Private.h index bddb9b093e..bffccec5fd 100644 --- a/platform/ios/src/MGLMapView_Private.h +++ b/platform/ios/src/MGLMapView_Private.h @@ -13,6 +13,9 @@ FOUNDATION_EXTERN MGL_EXPORT MGLExceptionName const MGLUnderlyingMapUnavailableE @interface MGLMapView (Private) +/// The map view’s OpenGL rendering context. +@property (nonatomic, readonly) EAGLContext *context; + /// Currently shown popover representing the selected annotation. @property (nonatomic) UIView<MGLCalloutView> *calloutViewForSelectedAnnotation; |