MaterialShaderDetailsController.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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/EntityId.h>
  10. #include <Atom/RPI.Public/MeshDrawPacket.h>
  11. namespace AtomImGuiTools
  12. {
  13. //! Provides some additional utilities for the interaction between AtomImGuiToolsSystemComponent and ImGuiMaterialDetails.
  14. class MaterialShaderDetailsController
  15. {
  16. public:
  17. //! Sets which entity who's draw packets will be displayed in ImGuiMaterialDetails
  18. void SetSelectedEntityId(AZ::EntityId entityId);
  19. //! Returns the collection of MeshDrawPackets currently used by the selected entity.
  20. const AZ::RPI::MeshDrawPacketLods* GetMeshDrawPackets() const;
  21. //! Returns the name of the selected entity.
  22. AZStd::string GetSelectionName() const;
  23. private:
  24. AZ::EntityId m_materialDetailsSelectedEntityId;
  25. };
  26. } // namespace AtomImGuiTools