style::Style::getImage() returns optional<style::Image>
This commit is contained in:
@@ -69,6 +69,7 @@ public:
|
||||
|
||||
class Impl;
|
||||
Immutable<Impl> baseImpl;
|
||||
explicit Image(Immutable<Impl> baseImpl_) : baseImpl(std::move(baseImpl_)) {}
|
||||
};
|
||||
|
||||
} // namespace style
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/map/camera.hpp>
|
||||
#include <mbgl/style/image.hpp>
|
||||
#include <mbgl/style/transition_options.hpp>
|
||||
#include <mbgl/util/geo.hpp>
|
||||
#include <mbgl/util/image.hpp>
|
||||
#include <mbgl/util/immutable.hpp>
|
||||
|
||||
#include <string>
|
||||
@@ -17,7 +17,6 @@ class FileSource;
|
||||
namespace style {
|
||||
|
||||
class Light;
|
||||
class Image;
|
||||
class Source;
|
||||
class Layer;
|
||||
|
||||
@@ -47,7 +46,7 @@ public:
|
||||
void setLight(std::unique_ptr<Light>);
|
||||
|
||||
// Images
|
||||
const PremultipliedImage* getImage(const std::string&) const;
|
||||
optional<Image> getImage(const std::string&) const;
|
||||
void addImage(std::unique_ptr<Image>);
|
||||
void removeImage(const std::string&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user