summaryrefslogtreecommitdiff
path: root/tools/shell/imgui_backend.hpp
blob: de3e1aa93d90f3e37eeccb9b98f7579421e427ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "window_impl.hpp"

#include <memory>

namespace mbgl {
namespace shell {

class ImGuiBackend final {
public:
    ImGuiBackend(Window::Impl &);
    ~ImGuiBackend();

    // Starts a new ImGui frame.
    void newFrame();

    // Create the draw calls and render
    // the frame using the graphics backend.
    void renderDrawData();

    class Impl;

private:
    std::unique_ptr<Impl> impl;
};

} // namespace shell
} // namespace mbgl