| 67 | } |
| 68 | |
| 69 | void 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 | |
| 83 | int Direct3D11Render::Render() const |
| 84 | { |
nothing calls this directly
no test coverage detected