summaryrefslogtreecommitdiff
path: root/src/bookmouse.hpp
blob: 58872d84d3070cc4e41983b99286fb9806cc0c03 (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
#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();

    SdlContext m_sdlContext;
    SdlMainWindow m_mainWindow;
    GlContext m_glContext;
    ImguiContext m_imgui;

    bool m_running{true};
};

} // namespace bookmouse

#endif