mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Light cleanup. Hook RSON loading for debugging and improvements for console overlay. TODO: fix thread lock on concomand execute from Present(..)
27 lines
858 B
C
27 lines
858 B
C
#pragma once
|
|
#include <d3d11.h>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Initialization
|
|
void SetupImGui();
|
|
void SetupDXSwapChain();
|
|
void DrawImGui();
|
|
void DestroyRenderTarget();
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Internals
|
|
void PrintDXAddress();
|
|
void InstallDXHooks();
|
|
void RemoveDXHooks();
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// 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
|
|
extern DWORD g_dThreadId;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|