#pragma once #include "common.hpp" #include namespace big { class renderer { public: explicit renderer(); ~renderer(); void on_present(); void pre_reset(); void post_reset(); void wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); public: ImFont *m_font; ImFont *m_monospace_font; private: comptr m_dxgi_swapchain; comptr m_d3d_device; comptr m_d3d_device_context; }; inline renderer *g_renderer{}; }