2021-06-14 17:56:53 -07:00
|
|
|
#pragma once
|
2021-06-16 16:12:53 -07:00
|
|
|
#include <d3d11.h>
|
2021-06-14 17:56:53 -07:00
|
|
|
|
2021-06-16 16:12:53 -07:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Initialization
|
|
|
|
void SetupImGui();
|
|
|
|
void SetupDXSwapChain();
|
|
|
|
void DrawImGui();
|
|
|
|
void DestroyRenderTarget();
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2021-06-16 16:43:03 -07:00
|
|
|
// Internals
|
2021-06-14 17:56:53 -07:00
|
|
|
void PrintDXAddress();
|
|
|
|
void InstallDXHooks();
|
|
|
|
void RemoveDXHooks();
|
|
|
|
|
2021-06-16 16:12:53 -07:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Handlers
|
|
|
|
extern LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
|
|
extern HRESULT __stdcall Present(IDXGISwapChain* pSwapChain, UINT nSyncInterval, UINT nFlags);
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Globals
|
2021-06-14 17:56:53 -07:00
|
|
|
extern DWORD g_dThreadId;
|
2021-06-16 16:43:03 -07:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|