Kiwano Engine v1.3.x
imgui_impl_dx10.h
1// dear imgui: Renderer for Kiwano (DirectX10)
2
3#pragma once
4#include <imgui/imgui.h>
5
6#ifndef KGE_DOXYGEN_DO_NOT_INCLUDE
7#ifndef IMGUI_DISABLE
8
9struct ID3D10Device;
10struct ID3D10SamplerState;
11struct ID3D10Buffer;
12
13// Follow "Getting Started" link and check examples/ folder to learn about using backends!
14IMGUI_IMPL_API bool ImGui_ImplDX10_Init(ID3D10Device* device);
15IMGUI_IMPL_API void ImGui_ImplDX10_Shutdown();
16IMGUI_IMPL_API void ImGui_ImplDX10_NewFrame();
17IMGUI_IMPL_API void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data);
18
19// Use if you want to reset your rendering device without losing Dear ImGui state.
20IMGUI_IMPL_API bool ImGui_ImplDX10_CreateDeviceObjects();
21IMGUI_IMPL_API void ImGui_ImplDX10_InvalidateDeviceObjects();
22
23// [BETA] Selected render state data shared with callbacks.
24// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplDX10_RenderDrawData() call.
25// (Please open an issue if you feel you need access to more data)
26struct ImGui_ImplDX10_RenderState
27{
28 ID3D10Device* Device;
29 ID3D10SamplerState* SamplerDefault;
30 ID3D10Buffer* VertexConstantBuffer;
31};
32
33#endif // #ifndef IMGUI_DISABLE
34#endif