diff options
Diffstat (limited to 'src/style/style_bucket.cpp')
-rw-r--r-- | src/style/style_bucket.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/style/style_bucket.cpp b/src/style/style_bucket.cpp new file mode 100644 index 0000000000..664d5a9488 --- /dev/null +++ b/src/style/style_bucket.cpp @@ -0,0 +1,16 @@ +#include <llmr/style/style_bucket.hpp> + +namespace llmr { + +StyleBucket::StyleBucket(StyleLayerType type) { + switch (type) { + case StyleLayerType::Fill: render = StyleBucketFill{}; break; + case StyleLayerType::Line: render = StyleBucketLine{}; break; + case StyleLayerType::Icon: render = StyleBucketIcon{}; break; + case StyleLayerType::Text: render = StyleBucketText{}; break; + case StyleLayerType::Raster: render = StyleBucketRaster{}; break; + default: break; + } +} + +}
\ No newline at end of file |