Debug overlay QOL improvements + Con_NPrintf() hook

* Added ability to invert rect to calculate offsets from bottom/right as well so debug text doesn't get out of view, or obstruct view when window is resized.
* Added Con_NPrintf() hook which shows detailed systems running times and VGUI panel debug information.
This commit is contained in:
Amos
2022-02-28 01:01:40 +01:00
parent 0774ebf9ff
commit 2719a85504
20 changed files with 287 additions and 55 deletions

View File

@@ -372,6 +372,9 @@ HRESULT __stdcall GetResizeBuffers(IDXGISwapChain* pSwapChain, UINT nBufferCount
g_bInitialized = false;
g_bPresentHooked = false;
g_nWindowWidth = nWidth;
g_nWindowHeight = nHeight;
///////////////////////////////////////////////////////////////////////////////
DestroyRenderTarget();

View File

@@ -28,6 +28,8 @@ typedef HRESULT(__stdcall* IDXGIResizeBuffers) (IDXGISwapChain* pSwapChain, UI
/////////////////////////////////////////////////////////////////////////////
// Globals
extern DWORD g_dThreadId;
inline INT g_nWindowWidth;
inline INT g_nWindowHeight;
/////////////////////////////////////////////////////////////////////////////
// Enums