imgui_impl_dx9.h 1.4 KB

1234567891011121314151617181920212223242526
  1. // dear imgui: Renderer Backend for DirectX9
  2. // This needs to be used along with a Platform Backend (e.g. Win32)
  3. // Implemented features:
  4. // [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID!
  5. // [X] Renderer: Multi-viewport support (multiple windows). Enable with 'io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable'.
  6. // [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices.
  7. // You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
  8. // Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
  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. #pragma once
  12. #include "imgui.h" // IMGUI_IMPL_API
  13. struct IDirect3DDevice9;
  14. IMGUI_IMPL_API bool ImGui_ImplDX9_Init(IDirect3DDevice9* device);
  15. IMGUI_IMPL_API void ImGui_ImplDX9_Shutdown();
  16. IMGUI_IMPL_API void ImGui_ImplDX9_NewFrame();
  17. IMGUI_IMPL_API void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data);
  18. // Use if you want to reset your rendering device without losing Dear ImGui state.
  19. IMGUI_IMPL_API bool ImGui_ImplDX9_CreateDeviceObjects();
  20. IMGUI_IMPL_API void ImGui_ImplDX9_InvalidateDeviceObjects();