5#ifndef KGE_DOXYGEN_DO_NOT_INCLUDE
7#if !defined(KGE_USE_DIRECTX10)
9#include <kiwano-imgui/imgui_impl/imgui_impl_dx11.h>
10#include <kiwano/render/DirectX/D3DDeviceResources.h>
12inline bool ImGui_Impl_Init()
14 auto d3d = kiwano::graphics::directx::GetD3DDeviceResources();
15 return ImGui_ImplDX11_Init(d3d->GetDevice(), d3d->GetDeviceContext());
18inline void ImGui_Impl_Shutdown()
20 ImGui_ImplDX11_Shutdown();
23inline void ImGui_Impl_NewFrame()
25 ImGui_ImplDX11_NewFrame();
28inline void ImGui_Impl_RenderDrawData(ImDrawData* draw_data)
30 ImGui_ImplDX11_RenderDrawData(draw_data);
33inline void ImGui_Impl_InvalidateDeviceObjects()
35 ImGui_ImplDX11_InvalidateDeviceObjects();
38inline bool ImGui_Impl_CreateDeviceObjects()
40 return ImGui_ImplDX11_CreateDeviceObjects();
45#include <kiwano-imgui/imgui_impl/imgui_impl_dx10.h>
46#include <kiwano/render/DirectX/D3DDeviceResources.h>
48inline bool ImGui_Impl_Init()
50 auto d3d = kiwano::graphics::directx::GetD3DDeviceResources();
51 return ImGui_ImplDX10_Init(d3d->GetDevice());
54inline void ImGui_Impl_Shutdown()
56 ImGui_ImplDX10_Shutdown();
59inline void ImGui_Impl_NewFrame()
61 ImGui_ImplDX10_NewFrame();
64inline void ImGui_Impl_RenderDrawData(ImDrawData* draw_data)
66 ImGui_ImplDX10_RenderDrawData(draw_data);
69inline void ImGui_Impl_InvalidateDeviceObjects()
71 ImGui_ImplDX10_InvalidateDeviceObjects();
74inline bool ImGui_Impl_CreateDeviceObjects()
76 return ImGui_ImplDX10_CreateDeviceObjects();