MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / Direct3D11Render

Class Direct3D11Render

KBotExt/DirectX.h:16–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14inline IDXGISwapChain* g_pSwapChain = nullptr;
15
16class Direct3D11Render
17{
18 std::string gamePatch;
19
20public:
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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected