diff options
Diffstat (limited to 'tools/shell/imgui_backend.cpp')
-rw-r--r-- | tools/shell/imgui_backend.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/shell/imgui_backend.cpp b/tools/shell/imgui_backend.cpp new file mode 100644 index 0000000000..b167cb9535 --- /dev/null +++ b/tools/shell/imgui_backend.cpp @@ -0,0 +1,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 |