A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
18 lines
376 B
Objective-C
18 lines
376 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
#include <mbgl/style/image.hpp>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface NSImage (MGLAdditions)
|
|
|
|
- (nullable instancetype)initWithMGLPremultipliedImage:(mbgl::PremultipliedImage&&)image;
|
|
|
|
- (nullable instancetype)initWithMGLStyleImage:(const mbgl::style::Image *)image;
|
|
|
|
- (std::unique_ptr<mbgl::style::Image>)mgl_styleImage;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|