ModelExporterContexts.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include <Atom/RPI.Builders/Model/ModelExporterContexts.h>
  9. #include <SceneAPI/SceneCore/Containers/Scene.h>
  10. #include <SceneAPI/SceneCore/DataTypes/Groups/IMeshGroup.h>
  11. namespace AZ
  12. {
  13. namespace RPI
  14. {
  15. ModelAssetBuilderContext::ModelAssetBuilderContext(
  16. const AZ::SceneAPI::Containers::Scene& scene,
  17. const AZ::SceneAPI::DataTypes::IMeshGroup& group,
  18. const AZ::SceneAPI::CoordinateSystemConverter coordSysConverter,
  19. const MaterialAssetsByUid& materialsByUid,
  20. Data::Asset<ModelAsset>& outputModelAsset,
  21. Data::Asset<SkinMetaAsset>& outputSkinMetaAsset,
  22. Data::Asset<MorphTargetMetaAsset>& outputMorphTargetMetaAsset)
  23. : m_scene(scene)
  24. , m_group(group)
  25. , m_coordSysConverter(coordSysConverter)
  26. , m_materialsByUid(materialsByUid)
  27. , m_outputModelAsset(outputModelAsset)
  28. , m_outputSkinMetaAsset(outputSkinMetaAsset)
  29. , m_outputMorphTargetMetaAsset(outputMorphTargetMetaAsset)
  30. {}
  31. MaterialAssetBuilderContext::MaterialAssetBuilderContext(
  32. const AZ::SceneAPI::Containers::Scene& scene,
  33. MaterialAssetsByUid& outputMaterialsByUid)
  34. : m_scene(scene)
  35. , m_outputMaterialsByUid(outputMaterialsByUid)
  36. {}
  37. } // namespace RPI
  38. } // namespace AZ