EditorWhiteBalanceComponent.h 1.5 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 <PostProcess/WhiteBalance/WhiteBalanceComponent.h>
  11. namespace AZ
  12. {
  13. namespace Render
  14. {
  15. namespace WhiteBalance
  16. {
  17. static constexpr const char* const EditorWhiteBalanceComponentTypeId = "{32C7C44E-AABD-4575-A485-C820BF1F0873}";
  18. }
  19. class EditorWhiteBalanceComponent final
  20. : public AzToolsFramework::Components::
  21. EditorComponentAdapter<WhiteBalanceComponentController, WhiteBalanceComponent, WhiteBalanceComponentConfig>
  22. {
  23. public:
  24. using BaseClass = AzToolsFramework::Components::
  25. EditorComponentAdapter<WhiteBalanceComponentController, WhiteBalanceComponent, WhiteBalanceComponentConfig>;
  26. AZ_EDITOR_COMPONENT(AZ::Render::EditorWhiteBalanceComponent, WhiteBalance::EditorWhiteBalanceComponentTypeId, BaseClass);
  27. static void Reflect(AZ::ReflectContext* context);
  28. EditorWhiteBalanceComponent() = default;
  29. EditorWhiteBalanceComponent(const WhiteBalanceComponentConfig& config);
  30. //! EditorRenderComponentAdapter overrides...
  31. AZ::u32 OnConfigurationChanged() override;
  32. };
  33. } // namespace Render
  34. } // namespace AZ