CameraViewRegistrationBus.h 975 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. #include <Atom/RPI.Public/Base.h>
  11. #include <AzCore/Component/EntityId.h>
  12. namespace Camera
  13. {
  14. class CameraViewRegistrationRequests
  15. : public AZ::EBusTraits
  16. {
  17. public:
  18. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
  19. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  20. virtual void SetViewForEntity([[maybe_unused]] const AZ::EntityId& id, [[maybe_unused]] AZ::RPI::ViewPtr view) {}
  21. virtual AZ::RPI::ViewPtr GetViewForEntity([[maybe_unused]]const AZ::EntityId& id) { return {}; }
  22. };
  23. using CameraViewRegistrationRequestsBus = AZ::EBus<CameraViewRegistrationRequests>;
  24. } //namespace Camera