blob: 7a14cc07c299a84763074676dbdb2fec75c222c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <ftxui/component/screen_interactive.hpp>
#include <memory>
class CRenderManager {
public:
CRenderManager();
~CRenderManager();
void enterLoop();
void setRenderer(ftxui::Component component);
private:
void exitLoop();
ftxui::ScreenInteractive screen;
ftxui::Component renderer;
friend class CInputManager;
};
inline std::unique_ptr<CRenderManager> g_pRenderManager;
|