1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <mbgl/map/backend.hpp> #include <mbgl/gl/context.hpp> #include <cassert> namespace mbgl { Backend::Backend() : context(std::make_unique<gl::Context>()) { } gl::Context& Backend::getContext() { return *context; } Backend::~Backend() = default; } // namespace mbgl