30 lines
511 B
C++
30 lines
511 B
C++
|
#pragma once
|
||
|
#include "common.hpp"
|
||
|
#include "imgui/imgui.h"
|
||
|
|
||
|
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<IDXGISwapChain> m_dxgi_swapchain;
|
||
|
comptr<ID3D11Device> m_d3d_device;
|
||
|
comptr<ID3D11DeviceContext> m_d3d_device_context;
|
||
|
};
|
||
|
|
||
|
inline renderer *g_renderer{};
|
||
|
}
|