imgui_impl_dx10.h (1168B)
1 // dear imgui: Renderer Backend for DirectX10 2 // This needs to be used along with a Platform Backend (e.g. Win32) 3 4 // Implemented features: 5 // [X] Renderer: User texture backend. Use 'ID3D10ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! 6 // [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. 7 8 // You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. 9 // If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. 10 // Read online: https://github.com/ocornut/imgui/tree/master/docs 11 12 #pragma once 13 #include "imgui.h" // IMGUI_IMPL_API 14 15 struct ID3D10Device; 16 17 IMGUI_IMPL_API bool ImGui_ImplDX10_Init(ID3D10Device* device); 18 IMGUI_IMPL_API void ImGui_ImplDX10_Shutdown(); 19 IMGUI_IMPL_API void ImGui_ImplDX10_NewFrame(); 20 IMGUI_IMPL_API void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data); 21 22 // Use if you want to reset your rendering device without losing Dear ImGui state. 23 IMGUI_IMPL_API void ImGui_ImplDX10_InvalidateDeviceObjects(); 24 IMGUI_IMPL_API bool ImGui_ImplDX10_CreateDeviceObjects();