RenderDebugEditorComponent.h 1.3 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 <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  10. #include <Atom/Feature/Debug/RenderDebugConstants.h>
  11. #include <Debug/RenderDebugComponent.h>
  12. namespace AZ::Render
  13. {
  14. namespace RenderDebug
  15. {
  16. inline constexpr AZ::TypeId RenderDebugEditorComponentTypeId{ "{235031F8-2AAD-442D-AB4D-F9B5B8337DCD}" };
  17. }
  18. class RenderDebugEditorComponent final
  19. : public AzToolsFramework::Components::EditorComponentAdapter<RenderDebugComponentController, RenderDebugComponent, RenderDebugComponentConfig>
  20. {
  21. public:
  22. using BaseClass = AzToolsFramework::Components::EditorComponentAdapter<RenderDebugComponentController, RenderDebugComponent, RenderDebugComponentConfig>;
  23. AZ_EDITOR_COMPONENT(AZ::Render::RenderDebugEditorComponent, RenderDebug::RenderDebugEditorComponentTypeId, BaseClass);
  24. static void Reflect(AZ::ReflectContext* context);
  25. RenderDebugEditorComponent() = default;
  26. RenderDebugEditorComponent(const RenderDebugComponentConfig& config);
  27. //! EditorRenderComponentAdapter overrides...
  28. AZ::u32 OnConfigurationChanged() override;
  29. };
  30. }