2019-03-21 20:18:31 +01:00
|
|
|
#pragma once
|
|
|
|
#include "common.hpp"
|
2019-06-23 22:00:18 +02:00
|
|
|
#include <imgui.h>
|
2019-03-21 20:18:31 +01:00
|
|
|
|
|
|
|
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);
|
2022-08-10 08:42:34 +08:00
|
|
|
|
2019-03-21 20:18:31 +01:00
|
|
|
private:
|
|
|
|
comptr<IDXGISwapChain> m_dxgi_swapchain;
|
|
|
|
comptr<ID3D11Device> m_d3d_device;
|
|
|
|
comptr<ID3D11DeviceContext> m_d3d_device_context;
|
|
|
|
};
|
|
|
|
|
2022-07-06 00:56:32 +08:00
|
|
|
inline renderer* g_renderer{};
|
2019-03-21 20:18:31 +01:00
|
|
|
}
|