SkinMeshAdvancedRule.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/Memory/Memory.h>
  10. #include <AzCore/std/containers/fixed_vector.h>
  11. #include <AzCore/std/string/string.h>
  12. #include <SceneAPI/SceneCore/DataTypes/Rules/IMeshAdvancedRule.h>
  13. namespace AZ
  14. {
  15. class ReflectContext;
  16. namespace SceneAPI
  17. {
  18. namespace Containers
  19. {
  20. class Scene;
  21. }
  22. namespace SceneData
  23. {
  24. class SkinMeshAdvancedRule
  25. : public DataTypes::IMeshAdvancedRule
  26. {
  27. public:
  28. AZ_RTTI(SkinMeshAdvancedRule, "{0116376D-1E3E-472A-A173-112B317E96AD}", DataTypes::IMeshAdvancedRule);
  29. AZ_CLASS_ALLOCATOR_DECL
  30. SkinMeshAdvancedRule();
  31. ~SkinMeshAdvancedRule() override = default;
  32. void SetUse32bitVertices(bool value);
  33. bool Use32bitVertices() const override;
  34. bool MergeMeshes() const override;
  35. void SetUseCustomNormals(bool value);
  36. bool UseCustomNormals() const override;
  37. void SetVertexColorStreamName(const AZStd::string& name);
  38. void SetVertexColorStreamName(AZStd::string&& name);
  39. const AZStd::string& GetVertexColorStreamName() const override;
  40. bool IsVertexColorStreamDisabled() const override;
  41. static void Reflect(ReflectContext* context);
  42. protected:
  43. AZStd::string m_vertexColorStreamName;
  44. bool m_use32bitVertices;
  45. bool m_useCustomNormals;
  46. };
  47. } // SceneData
  48. } // SceneAPI
  49. } // AZ