// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { public static partial class Jolt { public static unsafe partial class PInvoke { [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_Create")] public static partial SkeletalAnimation SkeletalAnimation_Create(); /// /// /// C++: /// Jolt/Skeleton/SkeletalAnimation.h:62 ///
/// float GetDuration() const ///
///
/// /// /// Get the length (in seconds) of this animation /// /// [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_GetDuration")] public static partial float SkeletalAnimation_GetDuration(SkeletalAnimation self); /// /// /// C++: /// Jolt/Skeleton/SkeletalAnimation.h:65 ///
/// void ScaleJoints(float inScale) ///
///
/// /// /// Scale the size of all joints by inScale /// /// [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_ScaleJoints")] public static partial void SkeletalAnimation_ScaleJoints(SkeletalAnimation self, float scale); /// /// /// C++: /// Jolt/Skeleton/SkeletalAnimation.h:68 ///
/// void SetIsLooping(bool inIsLooping) ///
///
/// /// /// If the animation is looping or not. If an animation is looping, the animation will continue playing /// after completion /// /// [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_SetIsLooping")] public static partial void SkeletalAnimation_SetIsLooping(SkeletalAnimation self, Brutal.Bool8 isLooping); /// /// /// C++: /// Jolt/Skeleton/SkeletalAnimation.h:69 ///
/// bool IsLooping() const ///
///
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_IsLooping")] public static partial Brutal.Bool8 SkeletalAnimation_IsLooping(SkeletalAnimation self); /// /// /// C++: /// Jolt/Skeleton/SkeletalAnimation.h:72 ///
/// void Sample(float inTime, SkeletonPose &ioPose) const ///
///
/// /// /// Get the (interpolated) joint transforms at time inTime /// /// [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_Sample")] public static partial void SkeletalAnimation_Sample(SkeletalAnimation self, float time, SkeletonPose pose); /// /// /// C++: /// Jolt/Skeleton/SkeletalAnimation.h:79 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the state of this animation in binary form to inStream. /// /// [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_SaveBinaryState")] public static partial void SkeletalAnimation_SaveBinaryState(SkeletalAnimation self, StreamOut stream); /// /// /// C++: /// Jolt/Skeleton/SkeletalAnimation.h:84 ///
/// static AnimationResult sRestoreFromBinaryState(StreamIn &inStream) ///
///
/// /// /// Restore a saved ragdoll from inStream /// /// /// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message. /// /// [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_sRestoreFromBinaryState")] public static partial SkeletalAnimation SkeletalAnimation_sRestoreFromBinaryState(StreamIn stream); [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_AddRef")] public static partial void SkeletalAnimation_AddRef(SkeletalAnimation self); [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_Release")] public static partial void SkeletalAnimation_Release(SkeletalAnimation self); [LibraryImport("jolt", EntryPoint = "SkeletalAnimation_GetRefCount")] public static partial uint SkeletalAnimation_GetRefCount(SkeletalAnimation self); } } }