SpecularReflectionsComponentController.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <AzCore/Component/Component.h>
  10. #include <AzCore/Component/TransformBus.h>
  11. #include <Atom/Feature/SpecularReflections/SpecularReflectionsFeatureProcessorInterface.h>
  12. #include <SpecularReflections/SpecularReflectionsComponentConfig.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. class SpecularReflectionsComponentController final
  18. {
  19. public:
  20. friend class EditorSpecularReflectionsComponent;
  21. AZ_TYPE_INFO(AZ::Render::SpecularReflectionsComponentController, "{8ED8A722-AB11-4603-9C78-E882B544A7EF}");
  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. SpecularReflectionsComponentController() = default;
  27. SpecularReflectionsComponentController(const SpecularReflectionsComponentConfig& config);
  28. void Activate(EntityId entityId);
  29. void Deactivate();
  30. void SetConfiguration(const SpecularReflectionsComponentConfig& config);
  31. const SpecularReflectionsComponentConfig& GetConfiguration() const;
  32. private:
  33. AZ_DISABLE_COPY(SpecularReflectionsComponentController);
  34. void OnConfigChanged();
  35. SpecularReflectionsComponentConfig m_configuration;
  36. SpecularReflectionsFeatureProcessorInterface* m_featureProcessor = nullptr;
  37. };
  38. }
  39. }