TmpMenu/src/gui.hpp
Yimura d624f1aaa1 refactor: Renderer (#694)
* Simplified SwapCHain, Device and DeviceContext pointers
* Added DX and WndProc callback registration
* Cleaned up GUI code
* Optimised Mouse Toggle
2022-12-16 17:55:55 +00:00

37 lines
547 B
C++

#pragma once
#include "common.hpp"
namespace big
{
class gui
{
public:
gui();
virtual ~gui();
gui(const gui&) = delete;
gui(gui&&) noexcept = delete;
gui& operator=(const gui&) = delete;
gui& operator=(gui&&) noexcept = delete;
bool is_open();
void toggle(bool toggle);
void dx_init();
void dx_on_tick();
void script_on_tick();
static void script_func();
void wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
private:
void toggle_mouse();
private:
bool m_is_open;
};
inline gui* g_gui;
}