VignetteComponent.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/Vignette/VignetteConstants.h>
  10. #include <PostProcess/Vignette/VignetteComponentController.h>
  11. #include <AtomLyIntegration/CommonFeatures/PostProcess/Vignette/VignetteComponentConfig.h>
  12. #include <AzCore/Component/Component.h>
  13. #include <AzFramework/Components/ComponentAdapter.h>
  14. namespace AZ
  15. {
  16. namespace Render
  17. {
  18. namespace Vignette
  19. {
  20. static constexpr const char* const VignetteComponentTypeId = "{93C2AD53-4722-4B33-BB23-BDBC1D423289}";
  21. }
  22. class VignetteComponent final
  23. : public AzFramework::Components::ComponentAdapter<VignetteComponentController, VignetteComponentConfig>
  24. {
  25. public:
  26. using BaseClass = AzFramework::Components::ComponentAdapter<VignetteComponentController, VignetteComponentConfig>;
  27. AZ_COMPONENT(AZ::Render::VignetteComponent, Vignette::VignetteComponentTypeId, BaseClass);
  28. VignetteComponent() = default;
  29. VignetteComponent(const VignetteComponentConfig& config);
  30. static void Reflect(AZ::ReflectContext* context);
  31. };
  32. } // namespace Render
  33. } // namespace AZ