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

Method EndFrame

KBotExt/DirectX.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void Direct3D11Render::EndFrame()
70{
71 // Rendering
72 auto clear_color = ImVec4(0, 0, 0, 255.f);
73 ImGui::EndFrame();
74 ImGui::Render();
75 g_pd3dDeviceContext->OMSetRenderTargets(1, &g_pd3dRenderTargetView, nullptr);
76 g_pd3dDeviceContext->ClearRenderTargetView(g_pd3dRenderTargetView, reinterpret_cast<float*>(&clear_color));
77 ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());
78
79 g_pSwapChain->Present(1, 0); // Present with vsync
80 //g_pSwapChain->Present(0, 0); // Present without vsync
81}
82
83int Direct3D11Render::Render() const
84{

Callers

nothing calls this directly

Calls 2

ImVec4Class · 0.85

Tested by

no test coverage detected