-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathd3d11hook.h
34 lines (26 loc) · 1.19 KB
/
d3d11hook.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/***
* _ ____ _ _ _ _ _
* __| |__ / __| / / | | |_ ___ ___| |__
* / _` ||_ \/ _` | | | | ' \/ _ \/ _ \ / /
* \__,_|___/\__,_|_|_| |_||_\___/\___/_\_\
*
* D3D11Hook by Rebzzel
* Added ImGui + InputHook by Sh0ckFR - https://twitter.com/Sh0ckFR
* For compile hook you need:
* - DirectX SDK (https://www.microsoft.com/en-us/download/details.aspx?id=6812)
* - Minhook (you can download in NuGet or github repository https://github.com/TsudaKageyu/minhook)
* License: https://github.com/Rebzzel/Universal-D3D11-Hook#license
*/
#ifndef D3D11_HOOK_H_INCLUDED_
#define D3D11_HOOK_H_INCLUDED_
#define D3D11_HOOK_API
struct ID3D11Device; // from d3d11.h
struct ID3D11DeviceContext; // from d3d11.h
struct IDXGISwapChain; // from d3d11.h
// Use for rendering graphical user interfaces (for example: ImGui) or other.
extern D3D11_HOOK_API void ImplHookDX11_Present(ID3D11Device *device, ID3D11DeviceContext *ctx, IDXGISwapChain *swap_chain);
// Use for initialize hook.
D3D11_HOOK_API void ImplHookDX11_Init(HMODULE hModule, void *hwnd);
// Use for untialize hook (ONLY AFTER INITIALIZE).
D3D11_HOOK_API void ImplHookDX11_Shutdown();
#endif