| 14 | inline IDXGISwapChain* g_pSwapChain = nullptr; |
| 15 | |
| 16 | class Direct3D11Render |
| 17 | { |
| 18 | std::string gamePatch; |
| 19 | |
| 20 | public: |
| 21 | bool closedClient = false; |
| 22 | |
| 23 | Direct3D11Render() = default; |
| 24 | |
| 25 | ~Direct3D11Render() = default; |
| 26 | |
| 27 | static void StartFrame(); |
| 28 | |
| 29 | static void EndFrame(); |
| 30 | |
| 31 | // initializes directx, fonts, imgui and objects |
| 32 | bool DirectXInit(HWND hWnd); |
| 33 | |
| 34 | static bool CreateRenderTarget(); |
| 35 | |
| 36 | static void CleanupRenderTarget(); |
| 37 | |
| 38 | // main rendering loop |
| 39 | int Render() const; |
| 40 | |
| 41 | //releases directx and clears imgui |
| 42 | static void Shutdown(); |
| 43 | |
| 44 | //initializes imgui |
| 45 | void Renderimgui(HWND hWnd); |
| 46 | |
| 47 | static void InitializeFonts(); |
| 48 | |
| 49 | //initializes imgui styles |
| 50 | static void MenuInit(); |
| 51 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected