EditorBloomComponent.h 1.4 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 <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  10. #include <Atom/Feature/PostProcess/DepthOfField/DepthOfFieldConstants.h>
  11. #include <PostProcess/Bloom/BloomComponent.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. namespace Bloom
  17. {
  18. static constexpr const char* const EditorBloomComponentTypeId =
  19. "{33789179-AB9C-4891-9DA3-1972EAED6719}";
  20. }
  21. class EditorBloomComponent final
  22. : public AzToolsFramework::Components::EditorComponentAdapter<BloomComponentController, BloomComponent, BloomComponentConfig>
  23. {
  24. public:
  25. using BaseClass = AzToolsFramework::Components::EditorComponentAdapter<BloomComponentController, BloomComponent, BloomComponentConfig>;
  26. AZ_EDITOR_COMPONENT(AZ::Render::EditorBloomComponent, Bloom::EditorBloomComponentTypeId, BaseClass);
  27. static void Reflect(AZ::ReflectContext* context);
  28. EditorBloomComponent() = default;
  29. EditorBloomComponent(const BloomComponentConfig& config);
  30. //! EditorRenderComponentAdapter overrides...
  31. AZ::u32 OnConfigurationChanged() override;
  32. };
  33. } // namespace Render
  34. } // namespace AZ