r5sdk/r5dev/include/id3dx.h
Amos cb0e72fc0a Forward console output to in-game console
Light cleanup. Hook RSON loading for debugging and improvements for console overlay.

TODO: fix thread lock on concomand execute from Present(..)
2021-06-16 16:43:03 -07:00

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;
/////////////////////////////////////////////////////////////////////////////