Files
MapLibreParticleLab/platform/macos/src/NSImage+MGLAdditions.h
John Firebaugh 5dd98df50b [all] Rationalize style::Image
A style has a collection of images, just as it has collections of sources and layers.

* Name things appropriately
* Use std::unique_ptr
2017-04-24 15:52:28 -07:00

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