imgui_impl_dx11.h 1.2 KB

12345678910111213141516171819202122
  1. // ImGui Renderer for: DirectX11
  2. // This needs to be used along with a Platform Binding (e.g. Win32)
  3. // Implemented features:
  4. // [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID in imgui.cpp.
  5. // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
  6. // If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown().
  7. // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
  8. // https://github.com/ocornut/imgui
  9. struct ID3D11Device;
  10. struct ID3D11DeviceContext;
  11. IMGUI_IMPL_API bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context);
  12. IMGUI_IMPL_API void ImGui_ImplDX11_Shutdown();
  13. IMGUI_IMPL_API void ImGui_ImplDX11_NewFrame();
  14. IMGUI_IMPL_API void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data);
  15. // Use if you want to reset your rendering device without losing ImGui state.
  16. IMGUI_IMPL_API void ImGui_ImplDX11_InvalidateDeviceObjects();
  17. IMGUI_IMPL_API bool ImGui_ImplDX11_CreateDeviceObjects();