RenderBackend.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/RTTI/RTTI.h>
  11. #include <Integration/Assets/ActorAsset.h>
  12. #include <Integration/Rendering/RenderActorInstance.h>
  13. namespace EMotionFX
  14. {
  15. namespace Integration
  16. {
  17. class RenderActor;
  18. class RenderBackend
  19. {
  20. public:
  21. AZ_RTTI(EMotionFX::Integration::RenderBackend, "{999AC1A7-0FBA-4F36-81B8-939FC80F1042}")
  22. AZ_CLASS_ALLOCATOR_DECL
  23. RenderBackend() = default;
  24. virtual ~RenderBackend() = default;
  25. virtual RenderActor* CreateActor(ActorAsset* asset) = 0;
  26. virtual RenderActorInstance* CreateActorInstance(AZ::EntityId entityId,
  27. const EMotionFXPtr<EMotionFX::ActorInstance>& actorInstance,
  28. const AZ::Data::Asset<ActorAsset>& asset,
  29. SkinningMethod skinningMethod,
  30. const AZ::Transform& worldTransform,
  31. bool rayTracingEnabled) = 0;
  32. };
  33. } // namespace Integration
  34. } // namespace EMotionFX