Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Alex Cristici <alex.cristici@gmail.com> Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: Stefan Karschti <stefan.karschti@gmail.com> Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: Alex Cristici <alex@skoon.energy> Co-authored-by: Bart Louwers <bart.louwers@gmail.com> Co-authored-by: Wei Chen <alanchenboy@gmail.com> Co-authored-by: Siarhei Fedartsou <siarhei.fedartsou@gmail.com> Co-authored-by: tdcosta100 <tdcosta100@gmail.com>
29 lines
704 B
C++
29 lines
704 B
C++
#pragma once
|
|
|
|
#include <mbgl/gfx/drawable_builder.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace mtl {
|
|
|
|
/**
|
|
Base class for Metal-specific drawable builders.
|
|
*/
|
|
class DrawableBuilder final : public gfx::DrawableBuilder {
|
|
public:
|
|
DrawableBuilder(std::string name_)
|
|
: gfx::DrawableBuilder(std::move(name_)) {}
|
|
~DrawableBuilder() override = default;
|
|
|
|
using DrawSegment = gfx::Drawable::DrawSegment;
|
|
std::unique_ptr<DrawSegment> createSegment(gfx::DrawMode, SegmentBase&&) override;
|
|
|
|
protected:
|
|
gfx::UniqueDrawable createDrawable() const override;
|
|
|
|
/// Setup the SDK-specific aspects after all the values are present
|
|
void init() override;
|
|
};
|
|
|
|
} // namespace mtl
|
|
} // namespace mbgl
|