diff options
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer_Private.h.ejs')
-rw-r--r-- | platform/darwin/src/MGLStyleLayer_Private.h.ejs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleLayer_Private.h.ejs b/platform/darwin/src/MGLStyleLayer_Private.h.ejs new file mode 100644 index 0000000000..245eeec29e --- /dev/null +++ b/platform/darwin/src/MGLStyleLayer_Private.h.ejs @@ -0,0 +1,24 @@ +<% + const doc = locals.doc; + const type = locals.type; + const layoutProperties = locals.layoutProperties; + const paintProperties = locals.paintProperties; + const enumProperties = locals.enumProperties; +-%> +// This file is generated. +// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`. +#pragma once + +#include "MGLStyleLayer_Private.h" + +#include <mbgl/style/layers/<%- type.replace('-', '_') %>_layer.hpp> + +namespace mbgl { + +class <%- camelize(type) %>StyleLayerPeerFactory : public LayerPeerFactory, public mbgl::style::<%- camelize(type) %>LayerFactory { + // LayerPeerFactory overrides. + style::LayerFactory* getCoreLayerFactory() final { return this; } + virtual MGLStyleLayer* createPeer(style::Layer*) final; +}; + +} // namespace mbgl |