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;
41 void startup(
const RenderContext& context);
44 ImFont* addFont(std::unique_ptr<Font> font);
45 ImFont* defaultFont()
const;
47 void beginFrame(
const RenderContext& context);
50 bool isStarted()
const;
55 void makeCurrent()
const;
56 void updateDisplayMetrics(
const RenderContext& context);
57 void rebuildDeviceObjects();
61 ImGuiContext* _context;
62 std::vector<std::unique_ptr<Font>> _fontSources;