summaryrefslogtreecommitdiff
path: root/tools/shell/imgui_backend.cpp
blob: b167cb9535ceff24e0388326dac1bede636c8543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "imgui_backend.hpp"

#include "imgui_backend_impl.hpp"

namespace mbgl {
namespace shell {

ImGuiBackend::ImGuiBackend(Window::Impl &windowImpl) : impl(Impl::Create(windowImpl)) {}

ImGuiBackend::~ImGuiBackend() = default;

void ImGuiBackend::newFrame() {
    impl->newFrame();
}

void ImGuiBackend::renderDrawData() {
    impl->renderDrawData();
}

} // namespace shell
} // namespace mbgl