PaniniProjectionComponent.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <Atom/Feature/PostProcess/PaniniProjection/PaniniProjectionConstants.h>
  10. #include <PostProcess/PaniniProjection/PaniniProjectionComponentController.h>
  11. #include <AtomLyIntegration/CommonFeatures/PostProcess/PaniniProjection/PaniniProjectionComponentConfig.h>
  12. #include <AzCore/Component/Component.h>
  13. #include <AzFramework/Components/ComponentAdapter.h>
  14. namespace AZ
  15. {
  16. namespace Render
  17. {
  18. namespace PaniniProjection
  19. {
  20. static constexpr const char* const PaniniProjectionComponentTypeId = "{87B77D17-1C0D-494B-88A2-15CB136BD9E0}";
  21. }
  22. class PaniniProjectionComponent final
  23. : public AzFramework::Components::ComponentAdapter<PaniniProjectionComponentController, PaniniProjectionComponentConfig>
  24. {
  25. public:
  26. using BaseClass = AzFramework::Components::ComponentAdapter<PaniniProjectionComponentController, PaniniProjectionComponentConfig>;
  27. AZ_COMPONENT(AZ::Render::PaniniProjectionComponent, PaniniProjection::PaniniProjectionComponentTypeId, BaseClass);
  28. PaniniProjectionComponent() = default;
  29. PaniniProjectionComponent(const PaniniProjectionComponentConfig& config);
  30. static void Reflect(AZ::ReflectContext* context);
  31. };
  32. } // namespace Render
  33. } // namespace AZ