// // 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 = "Skeleton_Create")] public static partial Skeleton Skeleton_Create(); /// [LibraryImport("jolt", EntryPoint = "Skeleton_GetJointCount")] public static partial int Skeleton_GetJointCount(Skeleton self); /// [LibraryImport("jolt", EntryPoint = "Skeleton_AddJoint")] public static partial uint Skeleton_AddJoint(Skeleton self, byte* name, byte* parentName); /// [LibraryImport("jolt", EntryPoint = "Skeleton_AddJoint_2")] public static partial uint Skeleton_AddJoint_2( Skeleton self, byte* name, int parentIndex, out uint outBufferCheck ); /// [LibraryImport("jolt", EntryPoint = "Skeleton_GetJointIndex")] public static partial int Skeleton_GetJointIndex(Skeleton self, byte* name); /// [LibraryImport("jolt", EntryPoint = "Skeleton_CalculateParentJointIndices")] public static partial void Skeleton_CalculateParentJointIndices(Skeleton self); /// [LibraryImport("jolt", EntryPoint = "Skeleton_AreJointsCorrectlyOrdered")] public static partial Brutal.Bool8 Skeleton_AreJointsCorrectlyOrdered(Skeleton self); /// [LibraryImport("jolt", EntryPoint = "Skeleton_SaveBinaryState")] public static partial void Skeleton_SaveBinaryState(Skeleton self, StreamOut stream); /// /// /// Restore the state of this object from inStream. /// /// /// C++: /// Jolt/Skeleton/Skeleton.h:65 ///
/// static SkeletonResult sRestoreFromBinaryState(StreamIn &inStream) ///
///
/// /// /// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message. /// /// [LibraryImport("jolt", EntryPoint = "Skeleton_RestoreFromBinaryState")] public static partial Skeleton Skeleton_RestoreFromBinaryState(StreamIn stream); /// /// /// Serialises this object into buffer as a Jolt object stream and returns the total size of that /// stream; nothing is written past the end of the buffer. Returns 0 when the object can't be written; /// call Jolt.GetLastError() for Jolt's error message. /// /// [LibraryImport("jolt", EntryPoint = "Skeleton_SaveObjectStream")] public static partial nuint Skeleton_SaveObjectStream( Skeleton self, byte* buffer, nuint bufferCount, ObjectStreamType streamType ); /// /// /// Reads a text or binary object stream and returns a null handle when it can't be read; call /// Jolt.GetLastError() for Jolt's error message. A truncated stream can still read back as an object /// with null references. A non-null return carries a reference the caller owns. /// /// [LibraryImport("jolt", EntryPoint = "Skeleton_RestoreFromObjectStream")] public static partial Skeleton Skeleton_RestoreFromObjectStream(byte* data, nuint dataCount); [LibraryImport("jolt", EntryPoint = "Skeleton_AddRef")] public static partial void Skeleton_AddRef(Skeleton self); [LibraryImport("jolt", EntryPoint = "Skeleton_Release")] public static partial void Skeleton_Release(Skeleton self); [LibraryImport("jolt", EntryPoint = "Skeleton_GetRefCount")] public static partial uint Skeleton_GetRefCount(Skeleton self); } } }