blob: a983025c86deb4efac060899444c73cf925e0702 (
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
30
31
32
33
34
35
36
|
#ifndef BOOKMOUSE_HPP
#define BOOKMOUSE_HPP
#include "gl_context.hpp"
#include "imgui_context.hpp"
#include "sdl_context.hpp"
#include "sdl_main_window.hpp"
namespace bookmouse {
class Bookmouse {
public:
Bookmouse() noexcept(false);
int run();
private:
SDL_Event pollEvent();
void updateState();
void renderFrame();
void menuBar();
void openDialog();
SdlContext m_sdlContext;
SdlMainWindow m_mainWindow;
GlContext m_glContext;
ImguiContext m_imgui;
bool m_running{true};
bool m_openDialog{false};
};
} // namespace bookmouse
#endif
|