3
0

EditorPaniniProjectionComponent.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/DepthOfField/DepthOfFieldConstants.h>
  10. #include <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  11. #include <PostProcess/PaniniProjection/PaniniProjectionComponent.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. namespace PaniniProjection
  17. {
  18. static constexpr const char* const EditorPaniniProjectionComponentTypeId = "{213CFFC8-E9E6-46EA-9DBE-B779F0B2A823}";
  19. }
  20. class EditorPaniniProjectionComponent final
  21. : public AzToolsFramework::Components::
  22. EditorComponentAdapter<PaniniProjectionComponentController, PaniniProjectionComponent, PaniniProjectionComponentConfig>
  23. {
  24. public:
  25. using BaseClass = AzToolsFramework::Components::
  26. EditorComponentAdapter<PaniniProjectionComponentController, PaniniProjectionComponent, PaniniProjectionComponentConfig>;
  27. AZ_EDITOR_COMPONENT(AZ::Render::EditorPaniniProjectionComponent, PaniniProjection::EditorPaniniProjectionComponentTypeId, BaseClass);
  28. static void Reflect(AZ::ReflectContext* context);
  29. EditorPaniniProjectionComponent() = default;
  30. EditorPaniniProjectionComponent(const PaniniProjectionComponentConfig& config);
  31. //! EditorRenderComponentAdapter overrides...
  32. AZ::u32 OnConfigurationChanged() override;
  33. };
  34. } // namespace Render
  35. } // namespace AZ