RenderDebugComponentController.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 <AtomLyIntegration/CommonFeatures/Debug/RenderDebugBus.h>
  10. #include <AtomLyIntegration/CommonFeatures/Debug/RenderDebugComponentConfig.h>
  11. #include <Atom/Feature/Debug/RenderDebugSettingsInterface.h>
  12. #include <Atom/Feature/Debug/RenderDebugSettingsInterface.h>
  13. #include <Atom/Feature/Debug/RenderDebugFeatureProcessorInterface.h>
  14. namespace AZ::Render
  15. {
  16. class RenderDebugComponentController final
  17. : public RenderDebugRequestBus::Handler
  18. {
  19. public:
  20. friend class RenderDebugEditorComponent;
  21. AZ_TYPE_INFO(AZ::Render::RenderDebugComponentController, "{365E4B90-7145-4803-B990-B6D3E0C4B80B}");
  22. static void Reflect(AZ::ReflectContext* context);
  23. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  24. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  25. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  26. RenderDebugComponentController() = default;
  27. RenderDebugComponentController(const RenderDebugComponentConfig& config);
  28. void Activate(EntityId entityId);
  29. void Deactivate();
  30. void SetConfiguration(const RenderDebugComponentConfig& config);
  31. const RenderDebugComponentConfig& GetConfiguration() const;
  32. // Auto-gen function override declarations (functions definitions in .cpp)...
  33. #include <Atom/Feature/ParamMacros/StartParamFunctionsOverride.inl>
  34. #include <Atom/Feature/Debug/RenderDebugParams.inl>
  35. #include <Atom/Feature/ParamMacros/EndParams.inl>
  36. private:
  37. AZ_DISABLE_COPY(RenderDebugComponentController);
  38. void OnConfigChanged();
  39. RenderDebugSettingsInterface* m_renderDebugSettingsInterface = nullptr;
  40. RenderDebugComponentConfig m_configuration;
  41. EntityId m_entityId;
  42. };
  43. }