-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
debug-frontend.h
33 lines (25 loc) · 835 Bytes
/
debug-frontend.h
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
#ifndef DEBUG_FRONTEND_H
#define DEBUG_FRONTEND_H
#include <functional>
#include "emulator-instance.h"
#include "window.h"
class DebugFrontend
{
public:
using GetUpscaledFramebufferSize = std::function<bool(unsigned int &width, unsigned int &height)>;
private:
const EmulatorInstance &emulator;
Window &window;
const GetUpscaledFramebufferSize get_upscaled_framebuffer_size;
public:
unsigned int output_width = 0, output_height = 0;
unsigned int upscale_width = 0, upscale_height = 0;
DebugFrontend(const EmulatorInstance &emulator, Window &window, const GetUpscaledFramebufferSize &get_upscaled_framebuffer_size)
: emulator(emulator)
, window(window)
, get_upscaled_framebuffer_size(get_upscaled_framebuffer_size)
{
}
void Display(bool &open);
};
#endif /* DEBUG_FRONTEND_H */