OtherActiveImGuiBus.h 688 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/EBus/EBus.h>
  10. // Forward Declares
  11. struct ImDrawData;
  12. namespace ImGui
  13. {
  14. class OtherActiveImGuiRequests : public AZ::EBusTraits
  15. {
  16. public:
  17. virtual ~OtherActiveImGuiRequests() = default;
  18. virtual void RenderImGuiBuffers(const ImDrawData& drawData) = 0;
  19. };
  20. //! ImGuiManager hands over drawing of ImGui content via this bus.
  21. using OtherActiveImGuiRequestBus = AZ::EBus<OtherActiveImGuiRequests>;
  22. }