pass style into painter
This commit is contained in:
@@ -60,8 +60,8 @@ private:
|
||||
private:
|
||||
Settings& settings;
|
||||
Transform transform;
|
||||
Painter painter;
|
||||
Style style;
|
||||
Painter painter;
|
||||
|
||||
int32_t min_zoom;
|
||||
int32_t max_zoom;
|
||||
|
||||
@@ -11,13 +11,14 @@ namespace llmr {
|
||||
|
||||
class Settings;
|
||||
class Transform;
|
||||
class Style;
|
||||
|
||||
class FillBucket;
|
||||
struct FillProperties;
|
||||
|
||||
class Painter {
|
||||
public:
|
||||
Painter(Transform& transform, Settings& settings);
|
||||
Painter(Transform& transform, Settings& settings, Style& style);
|
||||
|
||||
// Make noncopyable
|
||||
Painter(const Painter&) = delete;
|
||||
@@ -49,6 +50,7 @@ public:
|
||||
private:
|
||||
Transform& transform;
|
||||
Settings& settings;
|
||||
Style& style;
|
||||
float matrix[16];
|
||||
|
||||
Shader *currentShader;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define LLMR_STYLE_STYLE
|
||||
|
||||
#include <array>
|
||||
#include <map>
|
||||
#include "../util/pbf.hpp"
|
||||
|
||||
namespace llmr {
|
||||
@@ -43,8 +44,9 @@ public:
|
||||
void reset();
|
||||
void load(pbf data);
|
||||
|
||||
// StrokeStyle strokeStyle(const std::string& layer_name) const;
|
||||
// FillProperties fillStyle(const std::string& layer_name) const;
|
||||
public:
|
||||
std::map<std::string, FillProperties> computedFills;
|
||||
std::map<std::string, StrokeProperties> computedStrokes;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user