3
0

DiffuseGlobalIlluminationComponentController.h 1.9 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 <DiffuseProbeGrid/DiffuseGlobalIlluminationFeatureProcessorInterface.h>
  12. #include <Components/DiffuseGlobalIlluminationComponentConfig.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. class DiffuseGlobalIlluminationComponentController final
  18. {
  19. public:
  20. friend class EditorDiffuseGlobalIlluminationComponent;
  21. AZ_TYPE_INFO(AZ::Render::DiffuseGlobalIlluminationComponentController, "{7DE7D2A0-2526-447C-A11F-C31EE1332C26}");
  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. DiffuseGlobalIlluminationComponentController() = default;
  27. DiffuseGlobalIlluminationComponentController(const DiffuseGlobalIlluminationComponentConfig& config);
  28. void Activate(EntityId entityId);
  29. void Deactivate();
  30. void SetConfiguration(const DiffuseGlobalIlluminationComponentConfig& config);
  31. const DiffuseGlobalIlluminationComponentConfig& GetConfiguration() const;
  32. private:
  33. AZ_DISABLE_COPY(DiffuseGlobalIlluminationComponentController);
  34. void OnConfigChanged();
  35. DiffuseGlobalIlluminationComponentConfig m_configuration;
  36. DiffuseGlobalIlluminationFeatureProcessorInterface* m_featureProcessor = nullptr;
  37. };
  38. }
  39. }