3
0

MeshFactory.h 978 B

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/Math/Color.h>
  10. #include <AzCore/Math/Vector3.h>
  11. #include <AzCore/base.h>
  12. #include <AzCore/std/containers/vector.h>
  13. #include <AzCore/std/tuple.h>
  14. namespace EMotionFX
  15. {
  16. class Mesh;
  17. class MeshFactory
  18. {
  19. public:
  20. using SkinInfluence = AZStd::tuple<size_t, float>;
  21. using VertexSkinInfluences = AZStd::vector<SkinInfluence>;
  22. static EMotionFX::Mesh* Create(
  23. const AZStd::vector<AZ::u32>& indices,
  24. const AZStd::vector<AZ::Vector3>& vertices,
  25. const AZStd::vector<AZ::Vector3>& normals,
  26. const AZStd::vector<AZ::Vector2>& uvs = {},
  27. const AZStd::vector<VertexSkinInfluences>& skinningInfo = {}
  28. );
  29. };
  30. } // namespace EMotionFX