imgui_impl_null.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. // dear imgui: Null Platform+Renderer Backends
  2. // This is designed if you need to use a blind Dear Imgui context with no input and no output.
  3. // You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
  4. // Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need.
  5. // Learn about Dear ImGui:
  6. // - FAQ https://dearimgui.com/faq
  7. // - Getting Started https://dearimgui.com/getting-started
  8. // - Documentation https://dearimgui.com/docs (same as your local docs/ folder).
  9. // - Introduction, links and more at the top of imgui.cpp
  10. #pragma once
  11. #include "imgui.h" // IMGUI_IMPL_API
  12. #ifndef IMGUI_DISABLE
  13. // Follow "Getting Started" link and check examples/ folder to learn about using backends!
  14. // Null = NullPlatform + NullRender
  15. IMGUI_IMPL_API bool ImGui_ImplNull_Init();
  16. IMGUI_IMPL_API void ImGui_ImplNull_Shutdown();
  17. IMGUI_IMPL_API void ImGui_ImplNull_NewFrame();
  18. // Null platform only (single screen, fixed timestep, no inputs)
  19. IMGUI_IMPL_API bool ImGui_ImplNullPlatform_Init();
  20. IMGUI_IMPL_API void ImGui_ImplNullPlatform_Shutdown();
  21. IMGUI_IMPL_API void ImGui_ImplNullPlatform_NewFrame();
  22. // Null renderer only (no output)
  23. IMGUI_IMPL_API bool ImGui_ImplNullRender_Init();
  24. IMGUI_IMPL_API void ImGui_ImplNullRender_Shutdown();
  25. IMGUI_IMPL_API void ImGui_ImplNullRender_NewFrame();
  26. IMGUI_IMPL_API void ImGui_ImplNullRender_RenderDrawData(ImDrawData* draw_data);
  27. #endif // #ifndef IMGUI_DISABLE