demo_im_anim.cpp 817 B

12345678910111213141516171819202122
  1. // Part of ImGui Bundle - MIT License - Copyright (c) 2022-2026 Pascal Thomet - https://github.com/pthom/imgui_bundle
  2. #include "imgui_md_wrapper/imgui_md_wrapper.h"
  3. #ifdef IMGUI_BUNDLE_WITH_IMGUI_EXPLORER_LIB
  4. #include "imgui_explorer.h"
  5. #endif
  6. void demo_im_anim()
  7. {
  8. ImGuiMd::RenderUnindented(R"(
  9. # ImAnim
  10. ImAnim is an Animation Engine for Dear ImGui. Browse the demos below, and look at their code in the right panel! You may switch between C++ and Python code with the toggle at the top right of this window.
  11. )");
  12. ImGui::NewLine();
  13. ImGui::Separator();
  14. #ifdef IMGUI_BUNDLE_WITH_IMGUI_EXPLORER_LIB
  15. ShowImGuiExplorerGui_Cpp(ImGuiExplorerLibrary::ImAnim, false);
  16. #else
  17. ImGui::Text("Demo unavailable, because Dear ImGui Manual library is not included in this build.");
  18. #endif
  19. }