blob: 94bac3dcd4ec22cb303a15e71311f573c0ff70b7 (
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
|
#ifndef IMGUI_CONTEXT_HPP
#define IMGUI_CONTEXT_HPP
#include "sdl_context.hpp"
#include "sdl_main_window.hpp"
#include "gl_context.hpp"
#include <imgui/imgui.h>
namespace bookmouse {
class ImguiContext {
public:
ImguiContext(GlContext& glContext, SdlContext& sdlContext, SdlMainWindow& mainWindow);
~ImguiContext();
const ImGuiIO& getIO() const;
void setIOFlag(ImGuiConfigFlags_ flag) const;
bool processEvent(SDL_Event& event) const;
void startFrame() const;
void render() const;
private:
SdlMainWindow& m_mainWindow;
};
} // namespace bookmouse
#endif
|