9#ifndef AVARA3D_RENDER_BACKEND_OPENGL_IMGUICONTEXT_H
10#define AVARA3D_RENDER_BACKEND_OPENGL_IMGUICONTEXT_H
30 ImguiContext(
const ImguiContext&) =
delete;
31 ImguiContext& operator=(
const ImguiContext&) =
delete;
33 ImguiContext(ImguiContext&&) =
delete;
34 ImguiContext& operator=(ImguiContext&&) =
delete;
40 void startup(
const RenderContext& context);
43 ImFont* addFont(std::unique_ptr<Font> font);
44 ImFont* defaultFont()
const;
46 void beginFrame(
const RenderContext& context);
49 bool isStarted()
const;
54 void makeCurrent()
const;
55 void updateDisplayMetrics(
const RenderContext& context);
56 void rebuildDeviceObjects();
60 ImGuiContext* _context;
61 std::vector<std::unique_ptr<Font>> _fontSources;